mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
add luks.extraArgs
This commit is contained in:
parent
0e8c5d1e67
commit
e8f7aa94c2
2 changed files with 5 additions and 1 deletions
|
|
@ -29,6 +29,10 @@
|
||||||
algo = "aes-xts...";
|
algo = "aes-xts...";
|
||||||
name = "crypted";
|
name = "crypted";
|
||||||
keyfile = "/tmp/secret.key";
|
keyfile = "/tmp/secret.key";
|
||||||
|
extraArgs = [
|
||||||
|
"--hash sha512"
|
||||||
|
"--iter-time 5000"
|
||||||
|
];
|
||||||
content = {
|
content = {
|
||||||
type = "lvm";
|
type = "lvm";
|
||||||
name = "pool";
|
name = "pool";
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ let {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
create.luks = q: x: ''
|
create.luks = q: x: ''
|
||||||
cryptsetup -q luksFormat ${q.device} ${x.keyfile}
|
cryptsetup -q luksFormat ${q.device} ${x.keyfile} ${toString (x.extraArgs or [])}
|
||||||
cryptsetup luksOpen ${q.device} ${x.name} --key-file ${x.keyfile}
|
cryptsetup luksOpen ${q.device} ${x.name} --key-file ${x.keyfile}
|
||||||
${body.create { device = "/dev/mapper/${x.name}"; } x.content}
|
${body.create { device = "/dev/mapper/${x.name}"; } x.content}
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue