Bug 100883
Summary: | corrupt root field in grub.conf when root LABELed in fstab | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Richard R Barton <rrbarton> |
Component: | mkinitrd | Assignee: | Jeremy Katz <katzj> |
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-08-27 00:06:12 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Richard R Barton
2003-07-26 15:46:21 UTC
Probably a problem with grubby. grubby uses what you have listed as your root filesystem in /etc/fstab. So if you list it with a label there, we'll mount it with a label always (including in the initrd). If you list the device, then the device will be used instead. The kernel can't handle a root= parameter of a device label like LABEL=/ . Therefore, some software must resolve the label to a true device in a format acceptable to the kernel's root= parameter. Since Grub passes the kernel parameter from its configuration file, either the label must be resolved and the associated device put in the kernel parameter list in grub.conf or grub itself must resolve the label and modify the kernel parameter list before passing it to the kernel during boot. The stock setup as shipped by Red Hat Linux uses labels so that if your drives move around, you can still mount filesystems. We also use initrds by default which then are able to mount by label. If you are building your own kernels and not using an initrd, then you need to change your grub config for your first custom kernel and it will then be used for later ones (assuming that your kernel is set as the default as grubby will copy the default) |