Emergency shutdown goes back to Greeter
Steps to reproduce:
- Start Jessie 1205dd3
- Take off the USB stick
- Goes back to Greeter screen. I can even log in again :)
Repair emergency shutdown on boot medium removal (Closes: #8098).
The GDM unit file has a Restart=always directive, which is good in the general
case. However, it breaks our emergency shutdown on boot medium removal feature.
Let's disable it, then.
Also, the kexec-load initscript normally silently exits unless systemd is
currently running a reboot job. This is not the case when the emergency shutdown
has been triggered, so let's remove this check. (And besides, to be able to run
this check after the boot medium has been removed, we would have to lock way
more files in memory).
#2 Updated by intrigeri almost 5 years ago
Now that we're installing udisks, the symptoms are slightly different, but basically the net result is the same. I suspect that
pkill gdm3 in
udev-watchdog-wrapper is causing systemd to want to restart the gdm3 service. We could try to remove
Restart=always from its unit file, and see what happens.
#3 Updated by intrigeri almost 5 years ago
Indeed, commenting out the two lines that start with
/lib/systemd/system/gdm.service avoids the "back to the Greeter" effect. But I see lots of "SQUASHFS error", and the system seems to be frozen. Next step: add basic debugging to
do_stop so that we know at which point it fails.
#4 Updated by intrigeri almost 5 years ago
- Status changed from Confirmed to In Progress
- Assignee set to intrigeri
- % Done changed from 0 to 10
Removing the test for "systemd is pid 1 and is currently running a reboot job" in
/etc/init.d/kexec-load seems to fix emergency shutdown. Hopefully it doesn't break regular shutdown.