Red Hat Bugzilla – Bug 496279
Emergency shell for Live images unusable
Last modified: 2009-04-17 12:44:44 EDT
Created attachment 340027 [details]
Patch to fix emergency shell bash that is unbound to console
Description of problem:
If a Live image encounters an bug in initramfs /init, the system will drop you to a bash shell and wish you luck. Unfortunately luck will not be enough since bash will not be bound to the console and any user input will be just echoed back to you, but never acted upon.
Patch has been attached.
Version-Release number of selected component (if applicable):
You'll need a bug or simply adding an 'exit 1' within the /init that mkliveinitrd generates will suffice.
Steps to Reproduce:
1. Introduce a "bug" as just described.
2. Make a live image.
3. Boot the live image and attempt to run 'ls' or anything from the bash shell that is started.
You'll see what you type, but nothing more.
Commands should execute, which would make it much easier to find your bug, assuming of course it's more complex than the fake "exit 1" bug.
The attached patch will fix it.
This is actually fixed in current rawhide mkinitrd. If we push an update of mkinitrd to F10 for other reasons, I'll make sure this gets pulled in, otherwise, it's a "fixed in F11"