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