Handle quotes in kernel cmdline

Bug #1407891 reported by altyr
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Grub Customizer
New
Undecided
Unassigned

Bug Description

While most users don't use quotes in the kernel parameters, there are some cases where their usage is required.
Example entry from /etc/default/grub :
GRUB_CMDLINE_LINUX_DEFAULT="quiet vga=current apparmor=1 security=apparmor acpi_osi=\"!Windows 2012\""
(This is from a workaround to enable screen brightness control on certain devices)

Unfortunately grub-customizer does not play nice and strips all quotes. The program shows the following "kernel parameters" in "General settings":
quiet vga=current apparmor=1 security=apparmor acpi_osi=\!Windows 2012\
... which obviously is not the right value.

Saving the configuration without correcting the program's mistake leads to an error as copied below.
Please fix this behavior and thanks for your work on this piece of software so far.

----------

Failed saving grub configuration!

Please take a look at the command line output below. If you think this is a bug of Grub Customizer, please create one at https://launchpad.net/grub-customizer! Generally Grub Customizer should prevent errors like this.

failed running 'grub-mkconfig -o "/boot/grub/grub.cfg"' output:
/usr/sbin/grub-mkconfig: 40: /etc/default/grub: Syntax error: EOF in backquote substitution

Revision history for this message
Nils Kaiser (nils-kaiser) wrote :

Confirmed, I have to use the "Windows 2009" parameter for my optimus based system to work. Took my a bit to understand why a newer kernel wasn't booting because it was misinterpreting the grub-customizer output and thus not correctly passing the value.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.