Bug#547406: grub-pc: Linux command line not extracted from
Hello Harry, Just to understand fully. You want the command line out put to appear like this 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 default command line: resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsi That is read from the variable GRUB_CMDLINE_LINUX in the file /etc/default/grub like below # 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' -- Regards Martin Naughton
Bug#547406: grub-pc: Linux command line not extracted from /etc/default/grub
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
Bug#547406: grub-pc: Linux command line not extracted from /etc/default/grub
Am Samstag, den 19.09.2009, 15:17 +0200 schrieb Harald Braumann: 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. Because it's not there. It's in grub-pc.config or if you look in the source package debian/config.in now. 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 That's commented out so it's clear. GRUB_CMDLINE_LINUX='resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig' I just put that in my default/grub and ran `dpkg-reconfigure grub-pc'. Worked fine. So I don't have any clue where the problem is for you. -- Felix Zielcke Proud Debian Maintainer -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#547406: grub-pc: Linux command line not extracted from /etc/default/grub
On Sat, 19 Sep 2009 15:36:08 +0200 Felix Zielcke fziel...@z-51.de wrote: Am Samstag, den 19.09.2009, 15:17 +0200 schrieb Harald Braumann: 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. Because it's not there. It's in grub-pc.config or if you look in the source package debian/config.in now. OK, found it. #GRUB_CMDLINE_LINUX_DEFAULT=quiet That's commented out so it's clear. That's OK then. GRUB_CMDLINE_LINUX='resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig' I just put that in my default/grub and ran `dpkg-reconfigure grub-pc'. Worked fine. So I don't have any clue where the problem is for you. Me neither. Here's a debug output: ---8--- # DEBCONF_DEBUG=developer dpkg-reconfigure grub-pc debconf (developer): starting /var/lib/dpkg/info/grub-pc.prerm upgrade 1.97~beta3-1 debconf (developer): starting /var/lib/dpkg/info/grub-pc.config reconfigure 1.97~beta3-1 debconf (developer): -- SET grub2/linux_cmdline resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig debconf (developer): -- 0 value set debconf (developer): -- SET grub2/linux_cmdline_default debconf (developer): -- 0 value set debconf (developer): -- INPUT high grub2/linux_cmdline debconf (developer): -- 0 question will be asked debconf (developer): -- INPUT high grub2/linux_cmdline_default debconf (developer): -- 0 question will be asked debconf (developer): -- GO 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: ---8--- So the value is extracted correctly from /etc/default/grub but is then not used when the question is asked. I'm not familiar enough with debconf to solve the problem, but if you need any more information or want me some more tests to run, I'm happy to help. Cheers, harry signature.asc Description: PGP signature