From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8I89EPBxwV5WcQAA0tVLHw (envelope-from ) for ; Sun, 17 May 2020 17:18:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eHYeDPBxwV57BgAAB5/wlQ (envelope-from ) for ; Sun, 17 May 2020 17:18:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D38D7940510 for ; Sun, 17 May 2020 17:18:39 +0000 (UTC) Received: from localhost ([::1]:39592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaMvu-0007pD-Pe for larch@yhetil.org; Sun, 17 May 2020 13:18:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaMvO-0007Sp-JW for guix-patches@gnu.org; Sun, 17 May 2020 13:18:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33014) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaMvL-0004CC-DV for guix-patches@gnu.org; Sun, 17 May 2020 13:18:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jaMvL-00073X-93 for guix-patches@gnu.org; Sun, 17 May 2020 13:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40601] [PATCH 03/28] guix-install.sh: Fix systemctl not found error message at probe. Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 May 2020 17:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40601 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40601@debbugs.gnu.org Cc: Vincent Legoll Received: via spool by 40601-submit@debbugs.gnu.org id=B40601.158973587527055 (code B ref 40601); Sun, 17 May 2020 17:18:03 +0000 Received: (at 40601) by debbugs.gnu.org; 17 May 2020 17:17:55 +0000 Received: from localhost ([127.0.0.1]:44546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMvD-00072F-3c for submit@debbugs.gnu.org; Sun, 17 May 2020 13:17:55 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:38504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMv7-00071A-Qy for 40601@debbugs.gnu.org; Sun, 17 May 2020 13:17:51 -0400 Received: by mail-wm1-f41.google.com with SMTP id m185so2874861wme.3 for <40601@debbugs.gnu.org>; Sun, 17 May 2020 10:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YG1WXT/2/G3bXWxE0kriE/ZG3kP024EQQJnXT1rELdI=; b=vTgjmfvBZYYcFBwE9+oSbbDrR+dtO2L1N4vi0TTNpPD3HxoNuY7NjSvNXjmOq7/EyB XwAUV28/6kJIqsglwkR66J8VbVkf0gX70RwzflorkV2kXRa6hSku3Yk2ZY5W0h0pWJop IBdcsQADFPMtpl9sUCWARfHyqrhTECTwNVqe2pwuK4rQuQSNIY2e19icHZH9AmPlSY+y ehNyCB459YxQT+wYzeDX67quUQ1cttPEHsD1ZdtLbIuZSTLZuJqvJeTviqhv8Z5RaYJ3 YA8wfqYY7FeBRXK7gXoIBX9t54gT8A+KDm3oqM+J/plTBEy8UplBu0zddqy/BX7JUlPR VP/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YG1WXT/2/G3bXWxE0kriE/ZG3kP024EQQJnXT1rELdI=; b=kcCbnJXX42pHRlbCNDrxOpa6RcBdZOMdK1wpO4cOeZyAtGIRU8tXV/ZDjbJol1QtlH toQWbIYM0KOHcGGqeI1jGvq2OC+7smyjZOqdi+fA1FlaJPwGlyWKnejqZfh4Ttk8Xto5 k7QgTD8BJ9MPOJPHhacU+gP/TyNmanWG6J3BNrMHlXIq1IbjsvI5KIvIrBB4M9NSbURL /8ZQUl99yR/fmZU5/KcNPnfUnyGPhhZf3yGnwUpZGERJ4uZOZnx7Q65dRv5ti+Gf3Hkj ooPPvZ10dfiO3thXJ8qQQMCLMadYbIS2dCgy0GSWzzcYMWB6/9fzOEvtTrH7qgdrEpZE B31A== X-Gm-Message-State: AOAM531syHqQWq5q6Py997xncSFvRDDOPeVWhhfsy1SfRwcQYSmHEnGB RWRHCvXDAp5UcUuV8oIMS8Y3ZK8E X-Google-Smtp-Source: ABdhPJxKkYSJHF2dB20E8vjnfIhIY/B8DawCzWyMU3jwdPOlUOcftZAJRYNoCZiHMWq6Uqz0NadRKA== X-Received: by 2002:a1c:6204:: with SMTP id w4mr14947035wmb.55.1589735864036; Sun, 17 May 2020 10:17:44 -0700 (PDT) Received: from localhost.localdomain (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1]) by smtp.gmail.com with ESMTPSA id v126sm13305048wma.9.2020.05.17.10.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 10:17:43 -0700 (PDT) From: Vincent Legoll Date: Sun, 17 May 2020 19:17:00 +0200 Message-Id: <20200517171725.732-3-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517171725.732-1-vincent.legoll@gmail.com> References: <20200517171725.732-1-vincent.legoll@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=vTgjmfvB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.09 X-TUID: s+GNcBvWr+m6 * 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.2