From 7ffa49d4c16d01a40805c26dfb801e63d15d428b Mon Sep 17 00:00:00 2001 From: Kuruyia Date: Sun, 14 Apr 2024 21:53:35 +0200 Subject: [PATCH] feat: trim spaces in the generated kernel cmdline Signed-off-by: Alexandre Sollier --- cluster-provision/centos9/vmcli/cmd/qemu/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-provision/centos9/vmcli/cmd/qemu/system.go b/cluster-provision/centos9/vmcli/cmd/qemu/system.go index 31fee0468b..6d0ee0ec95 100644 --- a/cluster-provision/centos9/vmcli/cmd/qemu/system.go +++ b/cluster-provision/centos9/vmcli/cmd/qemu/system.go @@ -58,7 +58,7 @@ func (q QemuSystem) GenerateCmdline() string { "-serial", q.SerialHostDev, "-initrd", q.InitrdPath, "-kernel", q.KernelPath, - "-append", fmt.Sprintf("\"%s\"", strings.Join(q.KernelArgs, " ")), + "-append", fmt.Sprintf("\"%s\"", strings.TrimSpace(strings.Join(q.KernelArgs, " "))), "-netdev", q.Netdev, }