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

Harald Braumann harry at unheit.net
Sat Sep 19 15:21:58 UTC 2009


On Sat, 19 Sep 2009 15:36:08 +0200
Felix Zielcke <fzielcke at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20090919/317f591e/attachment.pgp>


More information about the Pkg-grub-devel mailing list