]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/commitdiff
systemd: Proper spawn a getty on TTY1.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 Feb 2023 10:14:33 +0000 (11:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Feb 2023 21:38:57 +0000 (21:38 +0000)
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 <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
systemd/systemd.nm

index f1985908bc7b207ff3db2f263ddc6f954030dd51..98f1aa9ccebc000096a9404c9de6123a1f8a1a2b 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = systemd
 version    = 252
-release    = 1
+release    = 2
 
 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
 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