Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to detect systemd on Fedora Silverblue 33 when trying to create a schedule #25

Closed
em- opened this issue Jan 1, 2021 · 2 comments

Comments

@em-
Copy link

em- commented Jan 1, 2021

On Fedora Silverblue 33 the systemd binary is not in the $PATH as it lives under /usr/lib/systemd/, which breaks detection since it relies on exec.LookPath():

$ resticprofile --name foo schedule
2021/01/01 23:06:07 using configuration file: /home/foo/.config/resticprofile/profiles.yaml
2021/01/01 23:06:07 it doesn't look like systemd is installed on your system```
$ ls -l /sbin/init 
lrwxrwxrwx. 4 root root 22 Dec 28  2018 /sbin/init -> ../lib/systemd/systemd*
$ readlink -f /sbin/init
/usr/lib/systemd/systemd
$ cat /etc/os-release 
NAME=Fedora
VERSION="33.20201227.0 (Silverblue)"
ID=fedora
VERSION_ID=33
VERSION_CODENAME=""
PLATFORM_ID="platform:f33"
PRETTY_NAME="Fedora 33.20201227.0 (Silverblue)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:33"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-silverblue/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=33
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=33
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Silverblue"
VARIANT_ID=silverblue
OSTREE_VERSION='33.20201227.0'

Looking for systemctl may be a better choice.

@creativeprojects
Copy link
Owner

Thanks for the report

systemctl works for me. I'll have a look when I come back next week 👍🏻

@creativeprojects
Copy link
Owner

Fixed in 6544052

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants