diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-05-04 15:47:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 15:47:26 +0300 |
commit | cddc413c66109596b095fba0de8f32b6b60384c1 (patch) | |
tree | 10abeca15888191827616f6a4bb23b495a3dc5dd | |
parent | e2e619c0ee6e89dced6da7a56bcc5f5f23815a6a (diff) | |
parent | 996db6d059cd8e6f3b5815a33816bf8ea16f42b5 (diff) |
Merge pull request #229845 from pitkling/fix/qemu-vm-escape-variable
virtualisation/qemu-vm: fix unescaped bash variable in shell script
-rw-r--r-- | nixos/modules/virtualisation/qemu-vm.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index f9f88b7340a75..5f6bf4b39e974 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -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 |