virtualisation/qemu-vm: escape bash variable in shell script
Fixes #229729
This commit is contained in:
parent
35e6df34dc
commit
996db6d059
|
@ -130,7 +130,7 @@ let
|
||||||
${concatStringsSep " \\\n" ([ "-f qcow2" ]
|
${concatStringsSep " \\\n" ([ "-f qcow2" ]
|
||||||
++ optional (cfg.useBootLoader && cfg.useDefaultFilesystems) "-F qcow2 -b ${systemImage}/nixos.qcow2"
|
++ optional (cfg.useBootLoader && cfg.useDefaultFilesystems) "-F qcow2 -b ${systemImage}/nixos.qcow2"
|
||||||
++ optional (!(cfg.useBootLoader && cfg.useDefaultFilesystems)) "-o size=${toString config.virtualisation.diskSize}M"
|
++ optional (!(cfg.useBootLoader && cfg.useDefaultFilesystems)) "-o size=${toString config.virtualisation.diskSize}M"
|
||||||
++ [ "$NIX_DISK_IMAGE" ])}
|
++ [ ''"$NIX_DISK_IMAGE"'' ])}
|
||||||
echo "Virtualisation disk image created."
|
echo "Virtualisation disk image created."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue