Wrong processing kernel options without assignment in 'cobbler edit profile ... --in-place' command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cobbler (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Editing a cobbler profile kernel options with the key --in-place for the kernel options without assignment (=value) follows to the adding assignment the '~' value.
For example:
Original kernel options (please put your attention to the 'toram' and 'debug' options):
-------
initrd=
-------
After executing the cobbler command
-------
cobbler profile edit --name ubuntu_bootstrap --kopts=
-------
Will be mangled to (please put attention to the 'toram' and 'debug' options):
-------
initrd=
-------
Adding =~ to the toram changes the option from a flag downloading file system into the RAM to the name of the file-system file (with the name '~') and triggers kernel panic.
See the bug for the details
https:/
So kernel flags like debug, loglevel, toram and etc should not be mangled with the '=~' value.
Details about cobbler version:
# cobbler version
Cobbler 2.6.9
source: ?, ?
build time: Mon May 23 15:48:50 2016
IMHO the check of '~' in profile and removing (all '~') before saving new parameters should be add into the code lines:
https:/