]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/commitdiff
systemd: Silence console output when updating the package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 Feb 2023 10:14:32 +0000 (11:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Feb 2023 21:38:57 +0000 (21:38 +0000)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
systemd/systemd.nm

index c8e378a3869e79da72a21e09434af53b43dbb128..f1985908bc7b207ff3db2f263ddc6f954030dd51 100644 (file)
@@ -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.