Bug#547406: grub-pc: Linux command line not extracted from /etc/default/grub

Harald Braumann harry at unheit.net
Sat Sep 19 13:17:49 UTC 2009


Package: grub-pc
Version: 1.97~beta3-1
Severity: normal

On upgrade, I'm presented with the following dialog:

---8<---------------------------------------------------------------------------
Configuring grub-pc
-------------------

The following Linux command line was extracted from /etc/default/grub or the `kopt' parameter in GRUB Legacy's 
menu.lst.  Please verify that it is correct, and modify it if necessary.

Linux command line: 


The following string will be used as Linux parameters for the default menu entry but not for the recovery mode.

Linux default command line: 

---8<---------------------------------------------------------------------------

But the parameter `Linux [default] command line' is not prefilled with the
value from /etc/default/grub. In fact, I couldn't find any code in 
grub-pc.postinst that would extract that value.

Here's my /etc/default/grub file:

---8<---------------------------------------------------------------------------
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX='resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig'

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"
---8<---------------------------------------------------------------------------

On a side note, it's a bit confusing that the description uses
`Linux command line' in one case and `string [...] as Linux parameters' in the
other.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/vgsys-lvroot / ext3 rw,errors=remount-ro,commit=5,data=ordered 0 0
/dev/mapper/vgraw-lvboot /boot ext3 rw,errors=continue,commit=5,data=ordered 0 0
/dev/mapper/vghb-lvhb /home/hb ext3 rw,errors=continue,commit=5,data=ordered 0 0
/dev/mapper/vgsys-lvvar /var ext3 rw,errors=continue,commit=5,data=ordered 0 0
/dev/mapper/vgsys-lvvm /var/lib/vm ext3 rw,errors=continue,commit=5,data=ordered 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
insmod lvm
set root=(vgraw-lvboot)
search --no-floppy --fs-uuid --set 4631fcaa-cb7f-4147-818f-001ce123668f
if loadfont /grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output.gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
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.29.3" {
	insmod lvm
	set root=(vgraw-lvboot)
	search --no-floppy --fs-uuid --set 4631fcaa-cb7f-4147-818f-001ce123668f
	linux	/vmlinuz-2.6.29.3 root=/dev/mapper/vgsys-lvroot ro resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig 
	initrd	/initrd.img-2.6.29.3
}
menuentry "Debian GNU/Linux, Linux 2.6.29.3 (recovery mode)" {
	insmod lvm
	set root=(vgraw-lvboot)
	search --no-floppy --fs-uuid --set 4631fcaa-cb7f-4147-818f-001ce123668f
	linux	/vmlinuz-2.6.29.3 root=/dev/mapper/vgsys-lvroot ro single resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
	initrd	/initrd.img-2.6.29.3
}
menuentry "Debian GNU/Linux, Linux 2.6.27.8" {
	insmod lvm
	set root=(vgraw-lvboot)
	search --no-floppy --fs-uuid --set 4631fcaa-cb7f-4147-818f-001ce123668f
	linux	/vmlinuz-2.6.27.8 root=/dev/mapper/vgsys-lvroot ro resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig 
	initrd	/initrd.img-2.6.27.8
}
menuentry "Debian GNU/Linux, Linux 2.6.27.8 (recovery mode)" {
	insmod lvm
	set root=(vgraw-lvboot)
	search --no-floppy --fs-uuid --set 4631fcaa-cb7f-4147-818f-001ce123668f
	linux	/vmlinuz-2.6.27.8 root=/dev/mapper/vgsys-lvroot ro single resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
	initrd	/initrd.img-2.6.27.8
}
menuentry "Debian GNU/Linux, Linux 2.6.26" {
	insmod lvm
	set root=(vgraw-lvboot)
	search --no-floppy --fs-uuid --set 4631fcaa-cb7f-4147-818f-001ce123668f
	linux	/vmlinuz-2.6.26 root=/dev/mapper/vgsys-lvroot ro resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig 
	initrd	/initrd.img-2.6.26
}
menuentry "Debian GNU/Linux, Linux 2.6.26 (recovery mode)" {
	insmod lvm
	set root=(vgraw-lvboot)
	search --no-floppy --fs-uuid --set 4631fcaa-cb7f-4147-818f-001ce123668f
	linux	/vmlinuz-2.6.26 root=/dev/mapper/vgsys-lvroot ro single resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
	initrd	/initrd.img-2.6.26
}
menuentry "Debian GNU/Linux, Linux 2.6.25-1-686" {
	insmod lvm
	set root=(vgraw-lvboot)
	search --no-floppy --fs-uuid --set 4631fcaa-cb7f-4147-818f-001ce123668f
	linux	/vmlinuz-2.6.25-1-686 root=/dev/mapper/vgsys-lvroot ro resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig 
	initrd	/initrd.img-2.6.25-1-686
}
menuentry "Debian GNU/Linux, Linux 2.6.25-1-686 (recovery mode)" {
	insmod lvm
	set root=(vgraw-lvboot)
	search --no-floppy --fs-uuid --set 4631fcaa-cb7f-4147-818f-001ce123668f
	linux	/vmlinuz-2.6.25-1-686 root=/dev/mapper/vgsys-lvroot ro single resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
	initrd	/initrd.img-2.6.25-1-686
}
### 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: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29.3
Locale: LANG=POSIX, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]         1.5.27     Debian configuration management sy
pn  grub-common                   <none>     (no description available)
ii  libc6                         2.9-25     GNU C Library: Shared libraries
ii  ucf                           3.0021     Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)
ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM filesystem

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub-pc/linux_cmdline:
* grub2/linux_cmdline: resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
* grub-pc/chainload_from_menu.lst: false
  grub-pc/kopt_extracted: false
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
* grub-pc/install_devices: /dev/sda





More information about the Pkg-grub-devel mailing list