nixos/pixiecore: fix escaping of cmdline
This commit is contained in:
parent
0c9b897241
commit
fd41795f58
@ -115,7 +115,7 @@ in
|
|||||||
if cfg.mode == "boot"
|
if cfg.mode == "boot"
|
||||||
then [ "boot" cfg.kernel ]
|
then [ "boot" cfg.kernel ]
|
||||||
++ optional (cfg.initrd != "") cfg.initrd
|
++ optional (cfg.initrd != "") cfg.initrd
|
||||||
++ optional (cfg.cmdLine != "") "--cmdline=${lib.escapeShellArg cfg.cmdLine}"
|
++ optionals (cfg.cmdLine != "") [ "--cmdline" cfg.cmdLine ]
|
||||||
else [ "api" cfg.apiServer ];
|
else [ "api" cfg.apiServer ];
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user