public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH 1/2] systemd: Silence console output when updating the package.
@ 2023-02-12 10:14 Stefan Schantl
  2023-02-12 10:14 ` [PATCH 2/2] systemd: Proper spawn a getty on TTY1 Stefan Schantl
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Schantl @ 2023-02-12 10:14 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]

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(a)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(a).service >/dev/null 2>&1 || :
 		end
 
 		# Be sure to start the new udev after everything is done.
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-12 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-12 10:14 [PATCH 1/2] systemd: Silence console output when updating the package Stefan Schantl
2023-02-12 10:14 ` [PATCH 2/2] systemd: Proper spawn a getty on TTY1 Stefan Schantl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox