From ff6d545ea44a2ca27ff2b7a2b722310e29d80852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 20 May 2023 19:12:03 +0200 Subject: [PATCH] disko: strip new lines from key files --- modules/disko.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/disko.nix b/modules/disko.nix index 2f6c7d9d..3a1789f7 100644 --- a/modules/disko.nix +++ b/modules/disko.nix @@ -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'