Browse Source

guix-install.sh: Fix ‘systemctl not found’ error message at probe.

* etc/guix-install.sh (chk_init_sys): Redirect systemctl errors to
/dev/null.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
wip-hurd-vm
Vincent Legoll 2 years ago
committed by Tobias Geerinckx-Rice
parent
commit
dc1aede30a
No known key found for this signature in database GPG Key ID: DB0FF884F556D79
  1. 2
      etc/guix-install.sh

2
etc/guix-install.sh

@ -142,7 +142,7 @@ chk_init_sys()
_msg "${INF}init system is: upstart"
INIT_SYS="upstart"
return 0
elif [[ $(systemctl) =~ -\.mount ]]; then
elif [[ $(systemctl 2>/dev/null) =~ -\.mount ]]; then
_msg "${INF}init system is: systemd"
INIT_SYS="systemd"
return 0

Loading…
Cancel
Save