nixos: run parted with --script option (3rd)
Doh, should have included this in previous commit. Ref. 0ff4bb5f875afe8eb208bbabb3f52dc29539d2bc ("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…
x
Reference in New Issue
Block a user