mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
tests: cover detached LUKS headers
This commit is contained in:
1 parent
ff8702b4de
commit
2dfbf0dcb0
2 files changed
+57
No files matched your search
@@ -0,0 +1,40 @@
|
||||
let
|
||||
headerDevice = "/dev/disk/by-partlabel/disk-main-luks-header";
|
||||
in
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/vdb";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
luks-header = {
|
||||
size = "32M";
|
||||
type = "8300";
|
||||
};
|
||||
crypt = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "crypted";
|
||||
settings = {
|
||||
header = headerDevice;
|
||||
keyFile = "/tmp/secret.key";
|
||||
};
|
||||
extraFormatArgs = [ "--header=${headerDevice}" ];
|
||||
extraOpenArgs = [ "--header=${headerDevice}" ];
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user