Skip to content

Commit 9c47c1e

Browse files
authored
hook-bootkit: fix: last kernel cmdline option would have a newline (#265)
Similar to #262 but for hook-bootkit.
2 parents 62730e3 + e4b0175 commit 9c47c1e

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)