feat(luks): Add settings submodule

The settings submodule mirrors the options which can be set for
boot.initrd.luks.devices.<name>.

The keyFile option is now deprecated and should be declared under settings.
This commit is contained in:
rogarb authored and mergify[bot] committed 2023-07-13 09:17:50 +00:00
1 parent aeebdc1156
commit 68eb09b183
3 files changed
+40 -14

No files matched your search

+4 -4
View File
@@ -31,9 +31,9 @@
content = {
type = "luks";
name = "crypted1";
keyFile = "/tmp/secret.key";
settings.keyFile = "/tmp/secret.key";
extraFormatArgs = [
"--iter-time 1"
"--iter-time 1" # unsecure but fast for tests
];
content = {
type = "lvm_pv";
@@ -56,9 +56,9 @@
content = {
type = "luks";
name = "crypted2";
keyFile = "/tmp/secret.key";
settings.keyFile = "/tmp/secret.key";
extraFormatArgs = [
"--iter-time 1"
"--iter-time 1" # unsecure but fast for tests
];
content = {
type = "lvm_pv";
+1 -1
View File
@@ -32,7 +32,7 @@
extraOpenArgs = [ "--allow-discards" ];
# if you want to use the key for interactive login be sure there is no trailing newline
# for example use `echo -n "password" > /tmp/secret.key`
keyFile = "/tmp/secret.key";
settings.keyFile = "/tmp/secret.key";
content = {
type = "lvm_pv";
vg = "pool";