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 stefan.schantl@ipfire.org --- 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.
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 --- 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 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