Skip to content
Permalink
Browse files

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>
  • Loading branch information...
sathnaga committed May 23, 2018
1 parent d661db2 commit 8aaceb14a538d519a4036591d00a9433163ff9cd
Showing with 2 additions and 2 deletions.
  1. +2 −2 virttest/libvirt_vm.py
@@ -876,11 +876,11 @@ def add_kernel(help_text, cmdline, kernel_path=None, initrd_path=None,
if has_sub_option("boot", "initrd") and initrd_path:
result += "initrd=%s," % initrd_path
if has_sub_option("boot", "kernel_args") and kernel_args:
result += "kernel_args=%s," % kernel_args
result += "kernel_args=\"%s\"," % kernel_args
else:
result = ""
logging.warning("boot option is not supported")
return result.strip(',')
return result.rstrip(',')

# End of command line option wrappers

0 comments on commit 8aaceb1

Please sign in to comment.
You can’t perform that action at this time.