Bug#460177: update-grub updates menu.lst with incorrect boot device

Jason Thomas jason.thomas at linkinnovations.com
Fri Jan 11 04:30:23 UTC 2008


The lines between the automagic markers are auto generated and subject
to change.  You need to edit the default options between those markers
to suit your needs.  Then when you run update-grub the generated content
will be correct.

On Thu, 2008-01-10 at 23:12 -0500, Thomas Bushnell BSG wrote:
> Package: grub
> Version: 0.97-27
> Severity: serious
> 
> update-grub mutates the boot device incorrectly in producing menu.lst.
> This bug, btw, caused a remote server to fail to reboot automatically
> and cost me actual expense in remote debugging assistance.
> 
> Attached is menu.lst-before (which I hand-edited to be correct) and
> menu.lst-after showing the effect of running update-grub.  See the
> following diff below.  update-grub is giving a root argument for hde6
> when sda6 is correct.  
> 
> mount and df report the correct information:
> 
> # mount
> /dev/sda6 on / type ext3 (rw,errors=remount-ro)
> tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
> procbususb on /proc/bus/usb type usbfs (rw)
> udev on /dev type tmpfs (rw,mode=0755)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
> /dev/sda7 on /var/cache/openafs type ext3 (rw)
> /dev/sda8 on /vicepa type ext3 (rw)
> /dev/sdb2 on /vicepb type ext3 (rw)
> /dev/sdb3 on /vicepc type ext3 (rw)
> AFS on /afs type afs (rw)
> 
> # df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/sda6            123039704  10407332 106382292   9% /
> tmpfs                   517768         0    517768   0% /lib/init/rw
> udev                     10240        76     10164   1% /dev
> tmpfs                   517768         0    517768   0% /dev/shm
> /dev/sda7             48062440   4276200  41344764
> 10% /var/cache/openafs
> /dev/sda8            307695928 134587736 157478156  47% /vicepa
> /dev/sdb2            239399140  12608524 214629816   6% /vicepb
> /dev/sdb3            239399168  14599972 212638396   7% /vicepc
> AFS                    9000000         0   9000000   0% /afs
> 
> 
> 
> 118c118
> < kernel		/boot/vmlinuz-2.6.18-5-k7 root=/dev/sda6 ro 
> ---
> > kernel		/boot/vmlinuz-2.6.18-5-k7 root=/dev/hde6 ro 
> 124c124
> < kernel		/boot/vmlinuz-2.6.18-5-k7 root=/dev/sda6 ro single
> ---
> > kernel		/boot/vmlinuz-2.6.18-5-k7 root=/dev/hde6 ro single
> 130c130
> < kernel		/boot/vmlinuz-2.6.18-4-k7 root=/dev/sda6 ro 
> ---
> > kernel		/boot/vmlinuz-2.6.18-4-k7 root=/dev/hde6 ro 
> 136c136
> < kernel		/boot/vmlinuz-2.6.18-4-k7 root=/dev/sda6 ro single
> ---
> > kernel		/boot/vmlinuz-2.6.18-4-k7 root=/dev/hde6 ro single
> 
> 
> 
> -- System Information:
> Debian Release: 4.0
>   APT prefers stable
>   APT policy: (500, 'stable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.18-5-k7
> Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
> 
> Versions of packages grub depends on:
> ii  libc6                  2.3.6.ds1-13etch4 GNU C Library: Shared libraries
> ii  libncurses5            5.5-5             Shared libraries for terminal hand
> 
> grub recommends no packages.
> 
> 
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
-- 
Jason Thomas
Network Operations Manager
Link Innovations - 02 9634 0400
http://www.linkinnovations.com/





More information about the Pkg-grub-devel mailing list