Bug 54794 - grubby ignores "fallback" setting
grubby ignores "fallback" setting
Product: Red Hat Raw Hide
Classification: Retired
Component: mkinitrd (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Erik Troan
Depends On:
  Show dependency treegraph
Reported: 2001-10-18 23:52 EDT by Michael Schwendt
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-10-29 14:57:25 EST
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 Michael Schwendt 2001-10-18 23:52:52 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012

Description of problem:
The kernel rpm's new-kernel-pkg script uses "grubby" to add a new boot
entry to /boot/grub/grub.conf. It inserts a new entry 0 at the beginning,
but doesn't update the "fallback=" setting accordingly.


# before kernel package update

# after kernel package update

Version-Release number of selected component (if applicable):
grub-0.90-11.i386.rpm from Raw Hide

How reproducible:

Steps to Reproduce:
1. cp /boot/grub/grub.conf /boot/grub/grub.conf.old
2. grubby --copy-default --title "test" --add-kernel /boot/vmlinuz-2.4.9-6
3. diff -u /boot/grub/grub.conf.old /boot/grub/grub.conf

Actual Results:  Grubby inserted the new kernel as first entry (0) and
increased the "default=" value accordingly to keep loading the old default
boot entry, but it did NOT increase the "fallback=" value.

Expected Results:  Grubby should have increased the "fallback=" value, too,
because it has inserted a new boot entry at the beginning.

Additional info:

[My main system is a fully updated Seawolf with just a few packages from
Raw Hide to get ext3. When I made the most recent kernel update for Seawolf
and since I have GRUB as boot loader, the kernel package's post-install
script added the 2.4.9-6 kernel using /sbin/new-kernel-pkg which in turn
runs grubby to modify /boot/grub/grub.conf.]
Comment 1 Michael Schwendt 2001-10-19 00:16:33 EDT
Wrong component. Changing to mkinitrd-3.2.6-1.
Comment 2 Michael Schwendt 2001-10-19 01:46:08 EDT
The equal signs (=) for "default" and "fallback" values in this report are type
errors. Imagine they
would not be there.
Comment 3 Erik Troan 2002-05-21 22:43:44 EDT
added for mkinitrd 3.4 (still being developed)

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