Bug 133236 - Kernel parameter root= is ignored
Summary: Kernel parameter root= is ignored
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact:
URL:
Whiteboard:
: 133191 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-09-22 17:56 UTC by Russell Coker
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version: 4.1.14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-27 04:54:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Russell Coker 2004-09-22 17:56:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)

Description of problem:
If I change the root= option in /boot/grub/grub.conf the system boot will not be affected.

The ./init script in the initrd has the root device hard-coded thus making it impossible to use the same initrd for booting with a different device.

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

How reproducible:
Always

Steps to Reproduce:
Boot with "root=whatever" and observe that it makes no difference.

Additional info:

Comment 1 Jeremy Katz 2004-09-22 18:00:57 UTC
It shouldn't have it hard-coded, it should have it as /dev/root but
that gets dynamically created.  Or does your initrd have something else?

Comment 2 Russell Coker 2004-09-22 18:10:58 UTC
echo Mounting root filesystem 
mount -o defaults --ro -t ext3 /dev/mapper/fc_test-strict /sysroot 
 
The above is from the /init file in the initrd.  Below are both 
instances of the root mount command from /sbin/mkinitrd.  Lines 732 
and 743. 
 
echo "echo Mounting root filesystem" >> $RCFILE 
echo "mount -o $rootopts --ro -t $rootfs $rootdev /sysroot">>$RCFILE 
 
echo "echo Mounting root filesystem" >> $RCFILE 
echo "mount -o $rootopts --ro -t $rootfs $rootdev /sysroot">>$RCFILE 
 

Comment 3 Jeremy Katz 2004-09-24 17:00:47 UTC
*** Bug 133191 has been marked as a duplicate of this bug. ***

Comment 4 Jeremy Katz 2004-09-30 22:06:07 UTC
Should be fixed in 4.1.14

Comment 5 Russell Coker 2006-03-27 04:54:10 UTC
This has been fixed for long enough, FC3 is not supported any more so there's 
no reason to keep the bug open. 


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