forked from c3d2/nix-config
disko: strip new lines from key files
This commit is contained in:
parent
4203164991
commit
ff6d545ea4
|
@ -108,8 +108,8 @@ in
|
|||
{
|
||||
type = "luks";
|
||||
name = luksName;
|
||||
# TODO: add password, otherwise prompt opens
|
||||
keyFile = "/$PWD/keyFile";
|
||||
# trim potential new lines to not have them in the password
|
||||
keyFile = "tr -d '\n' </$PWD/keyFile";
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
vg = vgName;
|
||||
|
|
Loading…
Reference in New Issue