Author: eelco
Date: Thu Mar 10 11:39:37 2011
New Revision: 26245
URL: https://svn.nixos.org/websvn/nix/?rev=26245&sc=1

Log:
* Fix `nixos-rebuild build-vm-with-bootloader': QEMU now requires the
  `readonly' flag if the disk image is not writable.

Modified:
   nixos/trunk/modules/virtualisation/qemu-vm.nix

Modified: nixos/trunk/modules/virtualisation/qemu-vm.nix
==============================================================================
--- nixos/trunk/modules/virtualisation/qemu-vm.nix      Thu Mar 10 09:39:17 
2011        (r26244)
+++ nixos/trunk/modules/virtualisation/qemu-vm.nix      Thu Mar 10 11:39:37 
2011        (r26245)
@@ -162,7 +162,7 @@
           -net 
user,vlan=0,guestfwd=tcp:10.0.2.4:445-chardev:samba''${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}
 \
           ${if cfg.useBootLoader then ''
             -drive 
index=0,file=$NIX_DISK_IMAGE,if=virtio,cache=writeback,werror=report \
-            -drive index=1,file=${bootDisk}/disk.img,if=virtio,boot=on \
+            -drive 
index=1,file=${bootDisk}/disk.img,if=virtio,boot=on,readonly \
           '' else ''
             -drive 
file=$NIX_DISK_IMAGE,if=virtio,cache=writeback,werror=report \
             -kernel ${config.system.build.toplevel}/kernel \
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to