Bug 439708 - missing error check at "Mounting root filesystem."
Summary: missing error check at "Mounting root filesystem."
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-30 21:15 UTC by John Reiser
Modified: 2009-05-05 21:51 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-05-05 21:51:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2008-03-30 21:15:53 UTC
Description of problem:  During boot, there is no specific error message for not
finding the root filesystem if specified by "root=LABEL=..." or
"root=UUID=....".  The messages which do appear are confusing.


Version-Release number of selected component (if applicable):
mkinitrd-6.0.40-1.fc9.x86_64


How reproducible: always


Steps to Reproduce:
1. Take a good GRUB stanza, and modify the "root=LABEL=..." or "root=UUID=..."
to name a non-existent filesystem [such as: add "xxx" onto the end of the LABEL,
or increment the last digit of the UUID.]
2. boot
3.
  
Actual results:
Trying to resume from <previous_swap_device>
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, using internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Mount failed for selinuxfs on /selinux: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Booting has failed.


Expected results:  Explicit check and explicit message for failure, such as:
Trying to resume from <previous_swap_device>
Creating root device.
Mounting root filesystem.
Mount "root=LABEL=<actual_label>" failed: No such file or directory.
Booting has failed.

Additional info:  See contents of /init from initrd.img at bug #439695.

Comment 1 Bug Zapper 2008-05-14 08:27:05 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Jeremy Katz 2009-05-05 21:51:27 UTC
This is a little crufty to fix in current mkinitrd and the next generation initramfs tool (dracut) already handles it a lot better.  Since we're intending to try to move to that for F12, not going to fix this up for the legacy mkinitrd (it's been like this for years and years... six more months isn't going to hurt much)


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