* Urgh, we do need to wait after each parted call

(http://hydra.nixos.org/build/483571).

svn path=/nixos/trunk/; revision=22558
This commit is contained in:
Eelco Dolstra 2010-07-12 12:35:25 +00:00
parent a86b1bd43d
commit ddf6dae895

View File

@ -285,10 +285,15 @@ in {
$machine->mustSucceed(
"parted /dev/vda mklabel msdos",
"parted /dev/vda -- mkpart primary ext2 1M 30MB", # /boot
"udevadm settle",
"parted /dev/vda -- mkpart extended 30M -1s", # extended partition
"udevadm settle",
"parted /dev/vda -- mkpart logical 30M 1000M", # md0 (root), first device
"udevadm settle",
"parted /dev/vda -- mkpart logical 1024M 2000M", # md0 (root), second device
"udevadm settle",
"parted /dev/vda -- mkpart logical 2048M 2548M", # md1 (swap), first device
"udevadm settle",
"parted /dev/vda -- mkpart logical 2560M 3060M", # md1 (swap), second device
"udevadm settle",
"mdadm --create --force /dev/md0 --metadata 1.2 --level=raid1 --raid-devices=2 /dev/vda5 /dev/vda6",