Bug 426423 - mkinitrd and/or nash does not cope with valid mount options resulting in failed boots
Summary: mkinitrd and/or nash does not cope with valid mount options resulting in fail...
Status: CLOSED DUPLICATE of bug 296361
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: 8
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2007-12-20 22:20 UTC by Michal Jaegermann
Modified: 2007-12-21 05:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-12-21 05:54:48 UTC
Type: ---

Attachments (Terms of Use)

Description Michal Jaegermann 2007-12-20 22:20:39 UTC
Description of problem:

There could be excellent reasons to mount file systems with
'relatime' options.  After /etc/fstab edits and restarting
the system everything looks just fine.
$ mount | grep relatime
/dev/sda3 on / type ext3 (rw,relatime)
..... (and so on as it was supposed to be).

The catch is that after a kernel update a system does not boot.
The culprit is mkinitrd which is producing in 'init' script
on a boot image a command like that:

mkrootdev -t ext3 -o relatime,ro LABEL=/

and 'mkrootdev' from nash fails on this.  Simply ignoring options
which it does not understand looks like the simplest solution here.

The above can be worked around using an undocumented option
'--rootopts=defaults' to mkinitrd when generating a replacement
boot image.  Unfortunately kernel package scripts are not doing
that.  Another possibility is to hack /sbin/mkinitrd and force
it to always use "defaults" and not bother with /etc/fstab.
Trivial but prone to overwrite on updates.  The best likely
would be to fix nash.

Are there really any good reasons to pass options to mkrootdev?

Version-Release number of selected component (if applicable):

How reproducible:

Comment 1 Warren Togami 2007-12-21 05:54:48 UTC
According to this, relatime is now the default, so you don't really need
relatime support in nash.  Bug #296361 remains open though because it is
probably a good idea to fix nash anyway for safety's sake.

*** This bug has been marked as a duplicate of 296361 ***

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