mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
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>
This commit is contained in:
parent
39939e30cf
commit
dc1aede30a
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ chk_init_sys()
|
||||||
_msg "${INF}init system is: upstart"
|
_msg "${INF}init system is: upstart"
|
||||||
INIT_SYS="upstart"
|
INIT_SYS="upstart"
|
||||||
return 0
|
return 0
|
||||||
elif [[ $(systemctl) =~ -\.mount ]]; then
|
elif [[ $(systemctl 2>/dev/null) =~ -\.mount ]]; then
|
||||||
_msg "${INF}init system is: systemd"
|
_msg "${INF}init system is: systemd"
|
||||||
INIT_SYS="systemd"
|
INIT_SYS="systemd"
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue