Red Hat Bugzilla – Bug 435577
Entering 'ctrl-alt-del' before udev starts causes spewage and hang
Last modified: 2014-06-18 04:46:09 EDT
Description of problem:
If you enter 'ctrl-alt-delete' just before udev starts, you get lots of AVCs,
lots of red FAILED, some green SUCCEED messages, and a hang.
If you wait for the file systems to be mounted, appears to work as expected.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
*** Bug 435831 has been marked as a duplicate of this bug. ***
OK, so what's happening here:
- control-alt-del is handled
- it calls shutdown
- shutdown switches it to runlevel 6
- as part of that, rcS is killed
- as a result of rcS being stopped, rc-default is *started*
- this switches to runlevel 3/5, cancelling the prior shutdown
- weirdness then happens
We could solve with a lockfile.
Actually, we can't. Root is read-only at the time when we'd have to create the lock.
I think the simplest way to solve this may be to move rc-default into rcS (much
like it's in rcS-sulogin)
Created attachment 297806 [details]
This patch moves the body of rc-default into rcS.
Not in this patch, but the default (in this and rcS-sulogin) should probably be
'3', not '2'.
Fixed in event-compat-sysv-0.3.9-10