Merge pull request #229845 from pitkling/fix/qemu-vm-escape-variable

virtualisation/qemu-vm: fix unescaped bash variable in shell script
This commit is contained in:
Weijia Wang 2023-05-04 15:47:26 +03:00 committed by GitHub
commit cddc413c66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ let
${concatStringsSep " \\\n" ([ "-f qcow2" ]
++ optional (cfg.useBootLoader && cfg.useDefaultFilesystems) "-F qcow2 -b ${systemImage}/nixos.qcow2"
++ optional (!(cfg.useBootLoader && cfg.useDefaultFilesystems)) "-o size=${toString config.virtualisation.diskSize}M"
++ [ "$NIX_DISK_IMAGE" ])}
++ [ ''"$NIX_DISK_IMAGE"'' ])}
echo "Virtualisation disk image created."
fi