Bug#601465: update-grub includes erroneous /boot in Linux kernel/initrd paths

Ben Hutchings ben at decadent.org.uk
Tue Oct 26 14:28:54 UTC 2010


Package: grub-pc
Version: 1.98+20100804-6
Severity: important

I use a separate /boot partition, so grub.cfg should not include /boot
in kernel/initd paths but it now does.  I believe this has become
broken since I last rebooted early on 6th October.  I upgraded grub-pc
shortly after:

2010-10-06 01:43:31 upgrade grub-pc 1.98+20100804-4 1.98+20100804-5

so I assume this is due to a change between these versions.

Ben.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/deadeye--new-root / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
/dev/sda2 /boot ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
/dev/mapper/deadeye--new-home /home ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0 0
/dev/mapper/deadeye--new-var /var ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/sda7 /media/SHARED vfat rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-ST9320423AS_5VH1LPZK
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod lvm
insmod part_msdos
insmod ext2
set root='(deadeye-new-root)'
search --no-floppy --fs-uuid --set 697ca52e-27b6-4716-8108-79744e22bfae
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 1849ae44-464d-4c93-8780-f6ce48f0ebff
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.35-trunk-amd64' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set 1849ae44-464d-4c93-8780-f6ce48f0ebff
	echo	'Loading Linux 2.6.35-trunk-amd64 ...'
	linux	/boot/vmlinuz-2.6.35-trunk-amd64 root=/dev/mapper/deadeye--new-root ro root=/dev/mapper/deadeye--new-root ro 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-trunk-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.35-trunk-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set 1849ae44-464d-4c93-8780-f6ce48f0ebff
	echo	'Loading Linux 2.6.35-trunk-amd64 ...'
	linux	/boot/vmlinuz-2.6.35-trunk-amd64 root=/dev/mapper/deadeye--new-root ro single root=/dev/mapper/deadeye--new-root ro
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-trunk-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set 1849ae44-464d-4c93-8780-f6ce48f0ebff
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/boot/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/deadeye--new-root ro root=/dev/mapper/deadeye--new-root ro 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set 1849ae44-464d-4c93-8780-f6ce48f0ebff
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/boot/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/deadeye--new-root ro single root=/dev/mapper/deadeye--new-root ro
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set 1849ae44-464d-4c93-8780-f6ce48f0ebff
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=/dev/mapper/deadeye--new-root ro root=/dev/mapper/deadeye--new-root ro 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set 1849ae44-464d-4c93-8780-f6ce48f0ebff
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=/dev/mapper/deadeye--new-root ro single root=/dev/mapper/deadeye--new-root ro
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-686' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set 1849ae44-464d-4c93-8780-f6ce48f0ebff
	echo	'Loading Linux 2.6.26-2-686 ...'
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/mapper/deadeye--new-root ro root=/dev/mapper/deadeye--new-root ro 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set 1849ae44-464d-4c93-8780-f6ce48f0ebff
	echo	'Loading Linux 2.6.26-2-686 ...'
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/mapper/deadeye--new-root ro single root=/dev/mapper/deadeye--new-root ro
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.26-2-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
	insmod part_msdos
	insmod ntfs
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 4e14b4a114b48e09
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.36          Debian configuration management sy
ii  grub-common              1.98+20100804-6 GRand Unified Bootloader, version 
ii  libc6                    2.11.2-6        Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1       2:1.02.48-3     The Linux Kernel Device Mapper use
ii  ucf                      3.0025+nmu1     Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.6      common files for the Debian Deskto

-- Configuration Files:
/etc/default/grub changed:
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX="root=/dev/mapper/deadeye--new-root ro"


-- debconf information:
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
  grub-pc/linux_cmdline: fillme
* grub2/linux_cmdline: root=/dev/mapper/deadeye--new-root ro
  grub-pc/install_devices_failed: false
  grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: false
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/disk_description:
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:
  grub-pc/install_devices_empty: false
* grub-pc/install_devices: /dev/disk/by-id/ata-ST9320423AS_5VH1LPZK
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/partition_description:
  grub-pc/install_devices_disks_changed:
  grub-pc/mixed_legacy_and_grub2: true

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20101026/ef3ea43f/attachment.pgp>


More information about the Pkg-grub-devel mailing list