Bug#550319: escaping quotations in /etc/default/grub matters

James Clark jamesc at jamesc.co.nz
Fri Dec 11 20:57:03 UTC 2009


The following works for me:

/etc/default/grub containing:
GRUB_CMDLINE_LINUX="acpi_osi=\"Linux\""
generates the following line in /boot/grub/grub.cfg:
linux   /boot/vmlinuz-2.6.30-2-686 root=UUID=ashortfakeuuid ro
acpi_osi="Linux" quiet

I had originally used "acpi_osi="Linux"" without escaping the quotes
around Linux, meaning that the resulting grub.cfg file would contain
acpi=Linux (unquoted) and then that option was ignored during boot.

Put a #comment in /etc/default/grub to prompt the user that quotes
need escaping and that they should then inspect the resulting grub.cfg
satisfactory.  Something so simple would have saved quite some time
and frustration.





More information about the Pkg-grub-devel mailing list