mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
* I hate asynchronous commands.
svn path=/nixos/trunk/; revision=33310
This commit is contained in:
parent
e86427f037
commit
a22bdbaeda
@ -282,9 +282,8 @@ in {
|
||||
"ls -l /dev/vda* >&2",
|
||||
"cat /proc/partitions >&2",
|
||||
"mdadm --create --force /dev/md0 --metadata 1.2 --level=raid1 --raid-devices=2 /dev/vda5 /dev/vda6",
|
||||
"mdadm -W /dev/md0", # wait for sync to finish; booting off an unsynced device tends to fail
|
||||
"mdadm --create --force /dev/md1 --metadata 1.2 --level=raid1 --raid-devices=2 /dev/vda7 /dev/vda8",
|
||||
"mdadm -W /dev/md1",
|
||||
"udevadm settle",
|
||||
"mkswap -f /dev/md1 -L swap",
|
||||
"swapon -L swap",
|
||||
"mkfs.ext3 -L nixos /dev/md0",
|
||||
@ -292,6 +291,9 @@ in {
|
||||
"mkfs.ext3 -L boot /dev/vda1",
|
||||
"mkdir /mnt/boot",
|
||||
"mount LABEL=boot /mnt/boot",
|
||||
"udevadm settle",
|
||||
"mdadm -W /dev/md0", # wait for sync to finish; booting off an unsynced device tends to fail
|
||||
"mdadm -W /dev/md1",
|
||||
);
|
||||
'';
|
||||
fileSystems = rootFS + bootFS;
|
||||
|
Loading…
Reference in New Issue
Block a user