···40 if [ -z "$TMPDIR" -o -z "$USE_TMPDIR" ]; then
41 TMPDIR=$(mktemp -d nix-vm.XXXXXXXXXX --tmpdir)
42 fi
043 # Create a directory for exchanging data with the VM.
44 mkdir -p $TMPDIR/xchg
4546 ${if cfg.useBootLoader then ''
47- # Create a writable copy/snapshot of the boot disk
48- # A writable boot disk can be booted from automatically
49 ${pkgs.qemu_kvm}/bin/qemu-img create -f qcow2 -b ${bootDisk}/disk.img $TMPDIR/disk.img || exit 1
5051 ${if cfg.useEFIBoot then ''
52- # VM needs a writable flash BIOS
53 cp ${bootDisk}/bios.bin $TMPDIR || exit 1
54 chmod 0644 $TMPDIR/bios.bin || exit 1
55 '' else ''
···40 if [ -z "$TMPDIR" -o -z "$USE_TMPDIR" ]; then
41 TMPDIR=$(mktemp -d nix-vm.XXXXXXXXXX --tmpdir)
42 fi
43+44 # Create a directory for exchanging data with the VM.
45 mkdir -p $TMPDIR/xchg
4647 ${if cfg.useBootLoader then ''
48+ # Create a writable copy/snapshot of the boot disk.
49+ # A writable boot disk can be booted from automatically.
50 ${pkgs.qemu_kvm}/bin/qemu-img create -f qcow2 -b ${bootDisk}/disk.img $TMPDIR/disk.img || exit 1
5152 ${if cfg.useEFIBoot then ''
53+ # VM needs a writable flash BIOS.
54 cp ${bootDisk}/bios.bin $TMPDIR || exit 1
55 chmod 0644 $TMPDIR/bios.bin || exit 1
56 '' else ''