Bug 239522 - mkinitrd copies only 20 chars from root=
mkinitrd copies only 20 chars from root=
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Jones
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2007-05-08 23:15 EDT by Doncho N. Gunchev
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-01 16:51:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Doncho N. Gunchev 2007-05-08 23:15:25 EDT
Description of problem:
After at some point the kernel stopped booting with root=LABEL=/ I switched to
/dev/VG12345/LVroot1 (I have FC6 too). When a new kernel was available and I
rebooted the new one loaded my FC6 (/dev/VG12345/LVroot).

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

How reproducible:
always, for the last 3 kernels I installed at least.

Steps to Reproduce:
1. install F7
2. edit grub.conf so root=/dev/VG12345/LVroot1 instead of root=LABEL=/
3. update the kernel rpm
4. look at grub.conf

Actual results:
the root device gets truncated to 19 characters.

Expected results:
Using device paths instead of labels should work, haven't tested with LABEL>19

Additional info:
mount shows me that I have /dev/mapper/VG12345-LVroot on / type ext3 (rw), but
that is not true. Maybe that's what confuses mkinitrd...
Comment 1 Doncho N. Gunchev 2007-05-13 20:37:12 EDT
My grub.conf starts with:
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/VG12345/LVroot1
#          initrd /initrd-version.img

and every time new kernel is installed I get:
        kernel /vmlinuz-version ro root=/dev/VG12345/LVroot
(no 1 at the end)
  The option root=LABEL=/ now works, didn't with one kernel, and I have to
modify this line every new kernel (even xen one) gets installed.

I'm changing even the comment to see what will happen next time...

PS: I have /dev/VG12345/LVroot and it is FC6, while /dev/VG12345/LVroot1 is F7.
Comment 2 Doncho N. Gunchev 2007-05-25 17:53:08 EDT
Ops. I searched in /etc and I think I found the problem. When one of the
development kernels did not boot I changed all LABEL=/ with /dev/VG (and typed
LVroot instead of LVroot1 for '/')... After that I have forgotten to revert
/etc/fstab, and that's from where new kernels have been getting their root=
option. My '/' entry in fstab was wrong (LVroot, not LVroot1), but that seems to
make no difference anywhere else ?!? Even mount shows LVroot, but the real
contents is from LVroot1 ?!? cat /proc/mounts is correct of course.

It is clear that the problem is not what I thought, but have no idea what to do
with this bug report now.
Comment 3 Doncho N. Gunchev 2007-06-01 16:51:54 EDT
In short, my fault - not a bug.

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