mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 13:33:28 +01:00
luks: add test for multiple partitions
reproduces #1263 already fails at verifying proper unmounting because the issue exists for both mounting and unmounting
This commit is contained in:
1 parent
ff8702b4de
commit
b8955c9021
3 files changed
+93
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{
|
||||
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")
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user