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. From patchwork Sun Feb 12 10:14:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6511 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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PF3HY37GQz3xGC for ; Sun, 12 Feb 2023 10:14:49 +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) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PF3HW3jv9z35Z; Sun, 12 Feb 2023 10:14:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PF3HW2wj3z2xbq; Sun, 12 Feb 2023 10:14:47 +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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PF3HT3mQ2z2xYv 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 4PF3HS74ghzhM; 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=1676196885; 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: in-reply-to:in-reply-to:references:references; bh=JmrSAbOXy8yhdyLnW+rdODx0dQPY9i58oQUEyPfC21A=; b=3fQIapGBnLRffeY5aGvT7uGcjEXhHsa6Fel36Qs8/lASzB1LAWdz+9ESB6QkKDirzKOunL EcfOicTCkjaMabBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1676196885; 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: in-reply-to:in-reply-to:references:references; bh=JmrSAbOXy8yhdyLnW+rdODx0dQPY9i58oQUEyPfC21A=; b=YXaa2KjCCEdaZFQcFd1h71NXIBvEYt6LeMzrQQHPBUfcsYnQTypMLxHCjNISaPrR6RswHz w2PaBwXtmjE8t2c4BGA1ERly9ReJWTtx63EpgN3N+6qnrvBc0Hs8S+vxLh4zKzBz5yRZ6g aJLAub/5QaT0DSQrPH9AFbwomA4afavGppGhZjravvywYGlNnBFjGnWCKCTVjf3KaxWfP7 bxzI0PddPhyZIrf4+OY6ZB1nAXD7+h0EvHzctwIyBuKOWHN8tQpyLyZXcfbkVyHoG8OIS4 24twnMFleK3oN+GpELSdkbNTnwtsKUE2uwx0hYyM2d6mrO4DddZYXEOgHJkrzw== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 2/2] systemd: Proper spawn a getty on TTY1. Date: Sun, 12 Feb 2023 11:14:33 +0100 Message-Id: <20230212101433.269851-2-stefan.schantl@ipfire.org> In-Reply-To: <20230212101433.269851-1-stefan.schantl@ipfire.org> References: <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" systemctl fails to execute the "enable" operation if a given service name does not exist or could not be enabled. In case multiple services have been given at once, the entire request fails. Signed-off-by: Stefan Schantl --- systemd/systemd.nm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/systemd/systemd.nm b/systemd/systemd.nm index f1985908b..98f1aa9cc 100644 --- a/systemd/systemd.nm +++ b/systemd/systemd.nm @@ -5,7 +5,7 @@ name = systemd version = 252 -release = 1 +release = 2 maintainer = Stefan Schantl groups = System/Base @@ -293,13 +293,11 @@ packages grep -q pam_systemd /etc/pam.d/system-auth-ac || authconfig --updateall --nostart >/dev/null 2>&1 || : fi - /usr/bin/systemctl enable \ - getty@.service \ - serial-getty@.service \ - remote-fs.target \ - systemd-readahead-replay.service \ - systemd-readahead-collect.service \ - >/dev/null 2>&1 || : + # Automatically spawn a getty on TTY1 + /usr/bin/systemctl enable getty@.service >/dev/null 2>&1 || : + + # Enable targed to mount all remote filesystems. + /usr/bin/systemctl enable remote-fs.target >/dev/null 2>&1 || : end script preup