* 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). svn path=/nixos/trunk/; revision=33746
This commit is contained in:
parent
375511eb33
commit
1d0c23bffb
@ -143,11 +143,11 @@ sub runTests {
|
||||
}
|
||||
|
||||
|
||||
# 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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user