forked from mirrors/nixpkgs
nixos: run parted with --script option (3rd)
Doh, should have included this in previous commit.
Ref. 0ff4bb5f87
("nixos: run parted with --script option").
This commit is contained in:
parent
bf338ab9ee
commit
aedba5c2af
|
@ -467,11 +467,11 @@ in {
|
||||||
filesystemEncryptedWithKeyfile = makeInstallerTest "filesystemEncryptedWithKeyfile"
|
filesystemEncryptedWithKeyfile = makeInstallerTest "filesystemEncryptedWithKeyfile"
|
||||||
{ createPartitions = ''
|
{ createPartitions = ''
|
||||||
$machine->succeed(
|
$machine->succeed(
|
||||||
"parted /dev/vda mklabel msdos",
|
"parted --script /dev/vda mklabel msdos",
|
||||||
"parted /dev/vda -- mkpart primary ext2 1M 50MB", # /boot
|
"parted --script /dev/vda -- mkpart primary ext2 1M 50MB", # /boot
|
||||||
"parted /dev/vda -- mkpart primary linux-swap 50M 1024M",
|
"parted --script /dev/vda -- mkpart primary linux-swap 50M 1024M",
|
||||||
"parted /dev/vda -- mkpart primary 1024M 1280M", # LUKS with keyfile
|
"parted --script /dev/vda -- mkpart primary 1024M 1280M", # LUKS with keyfile
|
||||||
"parted /dev/vda -- mkpart primary 1280M -1s",
|
"parted --script /dev/vda -- mkpart primary 1280M -1s",
|
||||||
"udevadm settle",
|
"udevadm settle",
|
||||||
"mkswap /dev/vda2 -L swap",
|
"mkswap /dev/vda2 -L swap",
|
||||||
"swapon -L swap",
|
"swapon -L swap",
|
||||||
|
|
Loading…
Reference in a new issue