From patchwork Sun Feb 12 10:14:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6510 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PF3HX6351z3ws7 for ; Sun, 12 Feb 2023 10:14:48 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PF3HV3zJbz1LH; Sun, 12 Feb 2023 10:14:46 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PF3HV1b56z2xkq; Sun, 12 Feb 2023 10:14:46 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PF3HT1BfSz2xYv for ; Sun, 12 Feb 2023 10:14:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4PF3HS27t0zH7; Sun, 12 Feb 2023 10:14:44 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1676196884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2gSBpHj9X2NWgS9W7B2/a7gmUKqm2b23/ic/Q9o0mA8=; b=qqnlp55xWPvyRwLEnLdB97ppYIYx4AgWyZbFUUOwJC9Kpfl9h9ieXLwkeNtKIwzK38Z3hn zTDvTa2SgSgdheAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1676196884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2gSBpHj9X2NWgS9W7B2/a7gmUKqm2b23/ic/Q9o0mA8=; b=R9bJ/ArS5BWMVQdwUnRlZm0NyPPpqGrCD2QoVz9k9HIDxwNLmpoxFlq3T2Df+FXc0lMTof l/S3x3ddLkppE9HeAx1aHUkTHokK8JBqpZ+ItabiLO8bQNEICMZwf06+oM8NifFTHmT48Q V2RVDxVsahgyXrYW4pA23aeGLme7U6tRDpPJiclMJutXCuDkoW2jFqrycQDDsB05qKFFY5 PIdRa2Q61XCwNoyTJ/MkuKpNUKK/mq4fZq/ArMqsGihJOX0fcGGU71EXL8ySLLoYqWGnEZ jNL8k3S8Cv5FI6lVvA/pD4TWuTp4BVeXPrIfeP2YbwvPF49YBPR5RqvMir9fMA== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 1/2] systemd: Silence console output when updating the package. Date: Sun, 12 Feb 2023 11:14:32 +0100 Message-Id: <20230212101433.269851-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Otherwise there are hints about non executed operations displayed because systemd does not run or lives in a chrooted environment. Signed-off-by: Stefan Schantl --- systemd/systemd.nm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/systemd/systemd.nm b/systemd/systemd.nm index c8e378a38..f1985908b 100644 --- a/systemd/systemd.nm +++ b/systemd/systemd.nm @@ -312,7 +312,7 @@ packages script postup # Re-exec systemd after update. - /usr/bin/systemctl daemon-reexec + /usr/bin/systemctl daemon-reexec >/dev/null 2>&1 || : # Restart login service after update /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : @@ -320,12 +320,9 @@ packages # Use the new journald configuration file and restart the service. if ! grep -xq ImportKernel=yes /etc/systemd/journald.conf ; then - mv /etc/systemd/journald.conf.paknew /etc/systemd/journald.conf + mv /etc/systemd/journald.conf.paknew /etc/systemd/journald.conf >/dev/null 2>&1 || : /usr/bin/systemctl restart systemd-journald.service >/dev/null 2>&1 || : fi - - # Enable spawning getty's on serial devices. - systemctl enable serial-getty@.service >/dev/null 2>&1 || : end # Be sure to start the new udev after everything is done.