Bug 496279 - Emergency shell for Live images unusable
Summary: Emergency shell for Live images unusable
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-17 15:50 UTC by John Florian
Modified: 2009-04-17 16:44 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-17 16:44:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to fix emergency shell bash that is unbound to console (429 bytes, patch)
2009-04-17 15:50 UTC, John Florian
no flags Details | Diff

Description John Florian 2009-04-17 15:50:31 UTC
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):
mkinitrd-6.0.71-4.fc10.src.rpm

How reproducible:
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.
  
Actual results:
You'll see what you type, but nothing more.

Expected results:
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.

Additional info:
The attached patch will fix it.

Comment 1 Jeremy Katz 2009-04-17 16:44:44 UTC
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"


Note You need to log in before you can comment on or make changes to this bug.