mirror of
https://github.com/danderson/netboot.git
synced 2025-10-16 18:11:21 +02:00
pixiecore: properly quote the ID parameter in StaticBooter.
This commit is contained in:
parent
81a8cca451
commit
16aa5cf353
@ -48,7 +48,7 @@ func StaticBooter(spec *Spec) (Booter, error) {
|
||||
|
||||
f := func(id string) string {
|
||||
ret.otherIDs = append(ret.otherIDs, id)
|
||||
return fmt.Sprintf("{{ ID other-%d }}", len(ret.otherIDs)-1)
|
||||
return fmt.Sprintf("{{ ID \"other-%d\" }}", len(ret.otherIDs)-1)
|
||||
}
|
||||
cmdline, err := expandCmdline(spec.Cmdline, template.FuncMap{"ID": f})
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user