Skip to content

Commit 0a5cda8

Browse files
authored
Fix credentialFiles option in QEMU not working when more than one credential is provided (#394)
* Fix -fw_cfg in qemu not working when multiple options are provided * Renamed parameter of lambda function used to construct -fw_cfg list in qemu
1 parent 8f78cbd commit 0a5cda8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/runners/qemu.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ lib.warnIf (mem == 2048) ''
190190
"-chardev" "stdio,id=stdio,signal=off"
191191
"-device" "virtio-rng-${devType}"
192192
] ++
193-
lib.optionals (fwCfgOptions != []) [
194-
"-fw_cfg" (lib.concatStringsSep "," fwCfgOptions)
195-
] ++
193+
builtins.concatMap (fwCfgOption: ["-fw_cfg" fwCfgOption]) fwCfgOptions ++
196194
lib.optionals serialConsole [
197195
"-serial" "chardev:stdio"
198196
] ++

0 commit comments

Comments
 (0)