Bug 83512
Summary: | kernel update failure message (grubby: no template) | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | bill parducci <bill> |
Component: | mkinitrd | Assignee: | Jeremy Katz <katzj> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | David Lawrence <dkl> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-06-11 03:50:55 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
bill parducci
2003-02-05 03:04:31 UTC
grubby is part of mkinitrd... changing component Can you attach your complete /boot/grub/grub.conf? up2date has some older code that does the updating so it usually ends up working even if grubby breaks here is /boot/grub/grub.conf as it stands today: # 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,0) # kernel /vmlinuz-version ro root=/dev/hda3 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=10 splashimage=(hd0,0)/grub/splash.xpm.gz title Red Hat Linux (2.4.18-24.8.0) root (hd0,0) kernel /vmlinuz-2.4.18-24.8.0 ro root=LABEL=/tmp initrd /initrd-2.4.18-24.8.0.img title Red Hat Linux (2.4.18-19.8.0) root (hd0,0) kernel /vmlinuz-2.4.18-19.8.0 ro root=LABEL=/tmp initrd /initrd-2.4.18-19.8.0.img title Red Hat Linux (2.4.18-14) root (hd0,0) kernel /vmlinuz-2.4.18-14 ro root=LABEL=/tmp initrd /initrd-2.4.18-14.img line #662 of grubby.c will cause it to fail if the default entry in lilo.conf lacks a root= directive. This line should probably be removed. Reassigning I was having the same problem. I discovered that besides my /boot/grub.conf file I also had a /etc/lilo.conf file. Grubby was trying to update both of them even though I had quit using lilo. It was successfully updating the /boot/grub.conf file but was unable to find a suitable template in the /etc/lilo.conf file and thus exiting with an error return. Here's a patch to correct the problem as referenced by David Winter on 2003-03-03 00:24. The problem is readily replicated by using a LABEL for the root device instead of an explicit "root=/dev/..." key/value pair in lilo.conf. *** grubby.c-old 2003-06-03 22:05:17.000000000 -0500 --- grubby.c 2003-06-03 22:10:09.000000000 -0500 *************** *** 659,665 **** --- 659,671 ---- line = entry->lines; while (line && line->type != LT_ROOT) line = line->next; + + #ifdef WANT_GRUBBY_FAILURE_BEFORE_TRYING_LT_KERNELARGS + /* + * 3 JUN 2003: [nelsonbe] - ifdef corrects premature + * return before evaluation and possible ``else'' decision. + */ if (!line) return 0; + + #endif if (line && line->numElements >= 2) dev = line->elements[1].item; This is fixed with newer versions of mkinitrd |