Author: eelco
Date: Wed Apr 11 10:05:29 2012
New Revision: 33746
URL: https://nixos.org/websvn/nix/?rev=33746&sc=1

Log:
* Use a raw disk for the installer test.  This speeds it up by almost
  two minutes on my laptop.  Note that due to sparse allocation, raw
  disks don't actually take up more space than qcow2 disks (and
  they're temporary anyway).

Modified:
   nixos/trunk/lib/test-driver/test-driver.pl

Modified: nixos/trunk/lib/test-driver/test-driver.pl
==============================================================================
--- nixos/trunk/lib/test-driver/test-driver.pl  Wed Apr 11 09:42:53 2012        
(r33745)
+++ nixos/trunk/lib/test-driver/test-driver.pl  Wed Apr 11 10:05:29 2012        
(r33746)
@@ -143,11 +143,11 @@
 }
 
 
-# Create an empty qcow2 virtual disk with the given name and size (in
+# Create an empty raw virtual disk with the given name and size (in
 # MiB).
 sub createDisk {
     my ($name, $size) = @_;
-    system("qemu-img create -f qcow2 $name ${size}M") == 0
+    system("qemu-img create -f raw $name ${size}M") == 0
         or die "cannot create image of size $size";
 }
 
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to