Present in RHEL3 (mkinitrd-3.5.13-6.1) and RHEL4 (mkinitrd-4.2.1.6-1). 1. Run mkinitrd on the attached fstab 2. the linuxrc will contain a 3 line root mount command: mount -o defaults defaults --ro -t ext3 ext3 /dev/root /sysroot instead of: mount -o default --ro -t ext3 /dev/root /sysroot The fix is to replace the following awk commands: rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $3; }}' $fstab) rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' $fstab) with: rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $3; exit }}' $fstab) rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; exit }}' $fstab) (Notice the exit after the print statement) "Patch" by Martin Poole <mpoole>
Created attachment 120458 [details] example-fstab
This happens whenever there are two lines in /etc/fstab with the "/" mount point. I've just been stung by this bug in FC6 too. Martin's suggested fix takes the first entry in /etc/fstab. Alternatively, using "tail -n 1" after the awk will get the last entry from /etc/fstab. This leaves the system unbootable when it happens.
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. Please See https://access.redhat.com/support/policy/updates/errata/ If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.