Mailinglist Archive: opensuse-bugs (5243 mails)

< Previous Next >
[Bug 803577] User initscripts are exiting arbitrarily and final reboot is canceled

--- Comment #18 from Joschi Brauchle <joschibrauchle@xxxxxx> 2013-03-24
15:17:18 UTC ---
I *think* I've found the problem: It seems to be the "StandardInput=tty" line
in the service file.

I guess what happens is that after YaST stage 2 finishes, systemd restarts all
getty's and kills all existing ones (possibly due to the "isolate" call, but maybe not). This behavior is definitely correct as
during installation all TTYs are root shells.

So now due to the "StandardInput=tty", the initscripts get signaled a HUP when
the getty's are restarting.

Hence I patched the /usr/lib/systemd/system/autoyast-initscripts.service file
like so:
--- a/autoyast-initscripts.service 2013-03-14 19:31:19.000000000 +0100
+++ b/autoyast-initscripts.service 2013-03-24 16:12:01.412201230 +0100
@@ -4,12 +4,10 @@

-Environment=SYSTEMD_NO_WRAP=1 TERM=linux
ExecStartPre=-/usr/bin/plymouth --hide-splash

and so far, all installations (~5) have worked as expected.

I also chose to remove the "Environment" line, because I think setting
"SYSTEMD_NO_WRAP=1" is not good here... A user would expect calls to rcscripts
to behave like in the installed system, i.e., to be wrapped by systemd by

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >