guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: guix-commits
Subject: 07/07: guix-install.sh: Fix ‘systemctl not found’ error message at probe.
Date: Sat, 23 May 2020 09:39:18 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit dc1aede30a63d60708ca98e92724dc14a262b0ec
Author: Vincent Legoll <address@hidden>
AuthorDate: Sun May 17 19:17:00 2020 +0200

    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 <address@hidden>
---
 etc/guix-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 4d457e7..bf15aed 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]