* Fix `nixos-rebuild build-vm-with-bootloader': QEMU now requires the

`readonly' flag if the disk image is not writable.

svn path=/nixos/trunk/; revision=26245
This commit is contained in:
Eelco Dolstra 2011-03-10 11:39:37 +00:00
parent d6424efbfb
commit e2e7b689b4

View File

@ -162,7 +162,7 @@ let
-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 \