From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:59123) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO1dw-0004zE-KL for guix-patches@gnu.org; Mon, 13 Apr 2020 12:09:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jO1dv-0005Mw-8d for guix-patches@gnu.org; Mon, 13 Apr 2020 12:09:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jO1du-0005MR-Pi for guix-patches@gnu.org; Mon, 13 Apr 2020 12:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jO1du-0006wp-En for guix-patches@gnu.org; Mon, 13 Apr 2020 12:09:02 -0400 Subject: [bug#40601] [PATCH 3/5] guix-install.sh: Fix systemctl not found error message at probe. Resent-Message-ID: From: Vincent Legoll Date: Mon, 13 Apr 2020 18:07:38 +0200 Message-Id: <20200413160740.19584-3-vincent.legoll@gmail.com> In-Reply-To: <20200413160740.19584-1-vincent.legoll@gmail.com> References: <20200413160740.19584-1-vincent.legoll@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40601@debbugs.gnu.org Cc: Vincent Legoll * etc/guix-install.sh (chk_init_sys)[systemctl]: Redirect errors to /dev/null. --- 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 dbc038a0ab..4fa9664cf5 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 -- 2.26.0