Mailinglist Archive: opensuse-bugs (5243 mails)

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

https://bugzilla.novell.com/show_bug.cgi?id=803577

https://bugzilla.novell.com/show_bug.cgi?id=803577#c18


--- 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
graphical.target" 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 @@

[Service]
Type=oneshot
-Environment=SYSTEMD_NO_WRAP=1 TERM=linux
ExecStartPre=-/usr/bin/plymouth --hide-splash
ExecStart=/usr/lib/YaST2/bin/autoyast-initscripts.sh
RemainAfterExit=yes
TimeoutSec=0
-StandardInput=tty

[Install]
WantedBy=default.target
----------
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
default.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >