From mboxrd@z Thu Jan 1 00:00:00 1970 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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6984885970052731811==" List-Id: --===============6984885970052731811== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 @@ =20 name =3D systemd version =3D 252 -release =3D 1 +release =3D 2 =20 maintainer =3D Stefan Schantl groups =3D 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 =20 - /usr/bin/systemctl enable \ - getty(a).service \ - serial-getty(a).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(a).service >/dev/null 2>&1 || : + + # Enable targed to mount all remote filesystems. + /usr/bin/systemctl enable remote-fs.target >/dev/null 2>&1 || : end =20 script preup --=20 2.30.2 --===============6984885970052731811==--