Skip to content

Commit 8aaceb1

Browse files
author
Satheesh Rajendran
committed
Minor fixes for custom boot params
Modified to rstrip instead of strip as we need to keep leading `,` and we need kernel params to be given in quotes as virt-install cmdline complains. Signed-off-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
1 parent d661db2 commit 8aaceb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virttest/libvirt_vm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,11 +876,11 @@ def add_kernel(help_text, cmdline, kernel_path=None, initrd_path=None,
876876
if has_sub_option("boot", "initrd") and initrd_path:
877877
result += "initrd=%s," % initrd_path
878878
if has_sub_option("boot", "kernel_args") and kernel_args:
879-
result += "kernel_args=%s," % kernel_args
879+
result += "kernel_args=\"%s\"," % kernel_args
880880
else:
881881
result = ""
882882
logging.warning("boot option is not supported")
883-
return result.strip(',')
883+
return result.rstrip(',')
884884

885885
# End of command line option wrappers
886886

0 commit comments

Comments
 (0)