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

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Harald Braumann
Date:
2012-12-29 22:15:03 UTC
Severity:
normal
#547406#5
Date:
2009-09-19 13:17:49 UTC
From:
To:
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.
#547406#10
Date:
2009-09-19 13:36:08 UTC
From:
To:
Am Samstag, den 19.09.2009, 15:17 +0200 schrieb Harald Braumann:

Because it's not there. It's in grub-pc.config or if you look in the
source package debian/config.in now.

That's commented out so it's clear.

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.

#547406#15
Date:
2009-09-19 15:21:58 UTC
From:
To:
OK, found it.
That's OK then.
---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

#547406#20
Date:
2012-12-29 22:12:39 UTC
From:
To:
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'