about summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-12-29 16:39:26 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-12-29 16:39:26 +0100
commit74aac178782af088cd40e2a1c224223b6692dc7c (patch)
treec79d3caaa655abf89b05b514ff3b9134f6919964 /nixos/modules/virtualisation
parent36a4600422dccf4a2deb91652e7f6e992bab6696 (diff)
downloadnixlib-74aac178782af088cd40e2a1c224223b6692dc7c.tar
nixlib-74aac178782af088cd40e2a1c224223b6692dc7c.tar.gz
nixlib-74aac178782af088cd40e2a1c224223b6692dc7c.tar.bz2
nixlib-74aac178782af088cd40e2a1c224223b6692dc7c.tar.lz
nixlib-74aac178782af088cd40e2a1c224223b6692dc7c.tar.xz
nixlib-74aac178782af088cd40e2a1c224223b6692dc7c.tar.zst
nixlib-74aac178782af088cd40e2a1c224223b6692dc7c.zip
Force rebuild of some corrupted files
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r--nixos/modules/virtualisation/qemu-vm.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix
index e90e319a36ba..5c4686044430 100644
--- a/nixos/modules/virtualisation/qemu-vm.nix
+++ b/nixos/modules/virtualisation/qemu-vm.nix
@@ -40,16 +40,17 @@ let
       if [ -z "$TMPDIR" -o -z "$USE_TMPDIR" ]; then
           TMPDIR=$(mktemp -d nix-vm.XXXXXXXXXX --tmpdir)
       fi
+
       # Create a directory for exchanging data with the VM.
       mkdir -p $TMPDIR/xchg
 
       ${if cfg.useBootLoader then ''
-        # Create a writable copy/snapshot of the boot disk
-        # A writable boot disk can be booted from automatically
+        # Create a writable copy/snapshot of the boot disk.
+        # A writable boot disk can be booted from automatically.
         ${pkgs.qemu_kvm}/bin/qemu-img create -f qcow2 -b ${bootDisk}/disk.img $TMPDIR/disk.img || exit 1
 
         ${if cfg.useEFIBoot then ''
-          # VM needs a writable flash BIOS
+          # VM needs a writable flash BIOS.
           cp ${bootDisk}/bios.bin $TMPDIR || exit 1
           chmod 0644 $TMPDIR/bios.bin || exit 1
         '' else ''