Unable to add dyndbg to command line
Bug #1838070 reported by
Jeffrey Hugo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm running Ubuntu 18.04.2 LTS
Version 2.02-2ubuntu8.13 of grub is installed.
When I update my grub.cfg to include dyndbg, such as:
linux /boot/vmlinuz-
the quotes are not handled properly.
The resulting kernel boot gets -
cat /proc/cmdline | more
BOOT_IMAGE=
As you can see, the first quote in the dyndbg param moved, thus invalidating the command line, and resulting in dyndbg not taking effect.
To post a comment you must log in.
This is correct. The essential thing to understand is the kernel's command-line uses space as the separator between options so:
option1=1 option2=2 option3=3
option1=1 option2="2" option3="3 or 4"
option1=1 "option2=2" "option3=3 or 4"
are all identical.
What you are seeing in /proc/cmdline is the *kernel* writing out each option and, when an option contains a space, it surrounds the option with double-quotes.
Consider that the "=" symbol has no special meaning in the context of the command line although individual modules *may* use it to separate key=value options themselves.