disko: strip new lines from key files

This commit is contained in:
Sandro - 2023-05-20 19:12:03 +02:00
parent 4203164991
commit ff6d545ea4
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ in
{ {
type = "luks"; type = "luks";
name = luksName; name = luksName;
# TODO: add password, otherwise prompt opens # trim potential new lines to not have them in the password
keyFile = "/$PWD/keyFile"; keyFile = "tr -d '\n' </$PWD/keyFile";
content = { content = {
type = "lvm_pv"; type = "lvm_pv";
vg = vgName; vg = vgName;