Bug#535239: grub-pc in some cases doesn't migrate kopt

Dmitri Gribenko gribozavr at gmail.com
Mon Aug 3 00:29:38 UTC 2009


Package: grub-pc
Version: 1.96+20090725-1
Severity: normal


I have just upgraded grub on two computers and on one of them I was hit by this
bug.  You can see that my debconf string grub-pc/linux_cmdline is empty.  I
think that it is caused by my kopt string and the characters it contains:

$ grep '^# kopt=' /boot/grub/menu.lst
# kopt=root=/dev/sda1 ro netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39 nmi_watchdog=0

$ sed -ne "s/^# kopt=//p" /boot/grub/menu.lst | tr -s " " "\n" | grep -vx "\(ro\|root=[^ ]*\)"
netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39
nmi_watchdog=0

It could be something related to shell quoting.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/f0ec65c8-37ef-47a8-9607-5c4b79b869de / reiserfs rw,relatime,notail 0 0
/dev/sda10 /home reiserfs rw,relatime 0 0
/dev/sda7 /tmp reiserfs rw,relatime 0 0
/dev/sda8 /usr reiserfs rw,relatime 0 0
/dev/sda9 /var reiserfs rw,relatime 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
*********************** END /boot/grub/device.map

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

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
if terminal_input console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_input
  terminal console
fi
if terminal_output.console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_output
  terminal console
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.31-rc5-1aug2009" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.31-rc5-1aug2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro  netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39 nmi_watchdog=0
	initrd	/boot/initrd.img-2.6.31-rc5-1aug2009
}
menuentry "Debian GNU/Linux, Linux 2.6.31-rc5-1aug2009 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.31-rc5-1aug2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro single 
	initrd	/boot/initrd.img-2.6.31-rc5-1aug2009
}
menuentry "Debian GNU/Linux, Linux 2.6.31-rc4-24jul2009" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.31-rc4-24jul2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro  netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39 nmi_watchdog=0
	initrd	/boot/initrd.img-2.6.31-rc4-24jul2009
}
menuentry "Debian GNU/Linux, Linux 2.6.31-rc4-24jul2009 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.31-rc4-24jul2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro single 
	initrd	/boot/initrd.img-2.6.31-rc4-24jul2009
}
menuentry "Debian GNU/Linux, Linux 2.6.30-rc8-81ee1bad-04jun2009" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.30-rc8-81ee1bad-04jun2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro  netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39 nmi_watchdog=0
	initrd	/boot/initrd.img-2.6.30-rc8-81ee1bad-04jun2009
}
menuentry "Debian GNU/Linux, Linux 2.6.30-rc8-81ee1bad-04jun2009 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.30-rc8-81ee1bad-04jun2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro single 
	initrd	/boot/initrd.img-2.6.30-rc8-81ee1bad-04jun2009
}
menuentry "Debian GNU/Linux, Linux 2.6.30-rc8-04jun2009" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.30-rc8-04jun2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro  netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39 nmi_watchdog=0
	initrd	/boot/initrd.img-2.6.30-rc8-04jun2009
}
menuentry "Debian GNU/Linux, Linux 2.6.30-rc8-04jun2009 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.30-rc8-04jun2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro single 
	initrd	/boot/initrd.img-2.6.30-rc8-04jun2009
}
menuentry "Debian GNU/Linux, Linux 2.6.30-rc7-d9244b5-02jun2009" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.30-rc7-d9244b5-02jun2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro  netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39 nmi_watchdog=0
	initrd	/boot/initrd.img-2.6.30-rc7-d9244b5-02jun2009
}
menuentry "Debian GNU/Linux, Linux 2.6.30-rc7-d9244b5-02jun2009 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.30-rc7-d9244b5-02jun2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro single 
	initrd	/boot/initrd.img-2.6.30-rc7-d9244b5-02jun2009
}
menuentry "Debian GNU/Linux, Linux 2.6.29-26mar2009" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.29-26mar2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro  netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39 nmi_watchdog=0
	initrd	/boot/initrd.img-2.6.29-26mar2009
}
menuentry "Debian GNU/Linux, Linux 2.6.29-26mar2009 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.29-26mar2009 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro single 
	initrd	/boot/initrd.img-2.6.29-26mar2009
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-amd64" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.26-2-amd64 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro  netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39 nmi_watchdog=0
	initrd	/boot/initrd.img-2.6.26-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-amd64 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.26-2-amd64 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro single 
	initrd	/boot/initrd.img-2.6.26-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.26-1-amd64" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.26-1-amd64 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro  netconsole=1111 at 192.168.1.4/eth0,8888 at 192.168.1.3/00:15:f2:65:2d:39 nmi_watchdog=0
	initrd	/boot/initrd.img-2.6.26-1-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.26-1-amd64 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set f0ec65c8-37ef-47a8-9607-5c4b79b869de
	linux	/boot/vmlinuz-2.6.26-1-amd64 root=UUID=f0ec65c8-37ef-47a8-9607-5c4b79b869de ro single 
	initrd	/boot/initrd.img-2.6.26-1-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-rc5-1aug2009 (SMP w/2 CPU cores)
Locale: LANG=ru_UA.UTF-8, LC_CTYPE=ru_UA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.27          Debian configuration management sy
ii  grub-common              1.96+20090725-1 GRand Unified Bootloader, version 
ii  libc6                    2.9-12          GNU C Library: Shared libraries
ii  ucf                      3.0018          Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.5      common files for the Debian Deskto
ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM filesystem
pn  os-prober                     <none>     (no description available)

-- debconf information:
  grub-pc/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true
* grub-pc/install_devices: /dev/sda





More information about the Pkg-grub-devel mailing list