Menu

#170 Do not depend on systemctl to get unitdir

open
nobody
None
2022-06-16
2022-06-13
Anonymous
No

Originally created by: opoplawski

systemctl cannot run inside of mock chroots used to build most RPMs:

<mock-chroot> sh-4.2# systemctl show -p UnitDir
Failed to get D-Bus connection: Operation not permitted

If necessary, --with-system could take an argument for unitdir?

Discussion

  • Anonymous

    Anonymous - 2022-06-16

    Originally posted by: chassell

    [sigh]. yeah ... it does need it.

     
  • Anonymous

    Anonymous - 2022-06-16

    Originally posted by: opoplawski

    Or just test for the existence of /usr/lib/systemd/system then /lib/systemd/system? Seems like that would pretty much cover the bases.

     

Log in to post a comment.