Skip to content

Commit e4b0175

Browse files
committed
hook-bootkit: fix: last kernel cmdline option would have a newline
Signed-off-by: Ricardo Pardini <[email protected]>
1 parent 62730e3 commit e4b0175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

images/hook-bootkit/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func removeTinkWorkerContainer(ctx context.Context, cli *client.Client) error {
263263
// https://github.com/tinkerbell/boots/blob/main/ipxe/hook.go
264264
func parseCmdLine(cmdLines []string) (cfg tinkWorkerConfig) {
265265
for i := range cmdLines {
266-
cmdLine := strings.SplitN(cmdLines[i], "=", 2)
266+
cmdLine := strings.SplitN(strings.TrimSpace(cmdLines[i]), "=", 2)
267267
if len(cmdLine) == 0 {
268268
continue
269269
}

0 commit comments

Comments
 (0)