mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
reproduces #1263 already fails at verifying proper unmounting because the issue exists for both mounting and unmounting
23 lines
714 B
Nix
23 lines
714 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
diskoLib ? pkgs.callPackage ../lib { },
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "luks-multiple";
|
|
disko-config = ../example/luks-multiple.nix;
|
|
testBoot = false;
|
|
postUnmountPreMount = ''
|
|
machine.fail("mountpoint /mnt/");
|
|
machine.fail("mountpoint /mnt/home");
|
|
machine.fail("${pkgs.cryptsetup}/bin/cryptsetup status root")
|
|
machine.fail("${pkgs.cryptsetup}/bin/cryptsetup status home")
|
|
'';
|
|
postMount = ''
|
|
machine.succeed("mountpoint /mnt/");
|
|
machine.succeed("mountpoint /mnt/home");
|
|
machine.succeed("${pkgs.cryptsetup}/bin/cryptsetup status root")
|
|
machine.succeed("${pkgs.cryptsetup}/bin/cryptsetup status home")
|
|
'';
|
|
}
|