Skip to content

Commit

Permalink
feat: trim spaces in the generated kernel cmdline
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Sollier <[email protected]>
  • Loading branch information
Kuruyia committed Apr 14, 2024
1 parent e13dc5e commit 7ffa49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-provision/centos9/vmcli/cmd/qemu/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 7ffa49d

Please sign in to comment.