aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Legoll <vincent.legoll@gmail.com>2020-05-17 19:17:00 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-05-23 15:37:58 +0200
commitdc1aede30a63d60708ca98e92724dc14a262b0ec (patch)
tree35e0e485e36b1185395e772f9758ac5da1a9d780
parent39939e30cf77a3336a938f0d6df6a95a07cf9ebd (diff)
downloadpatches-dc1aede30a63d60708ca98e92724dc14a262b0ec.tar
patches-dc1aede30a63d60708ca98e92724dc14a262b0ec.tar.gz
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>
-rwxr-xr-xetc/guix-install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 4d457e7f2d..bf15aede21 100755
--- a/etc/guix-install.sh
+++ b/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