Handle quotes in kernel cmdline
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_
(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:/
failed running 'grub-mkconfig -o "/boot/
/usr/sbin/
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.