From a6039e1be2ca794497d073afe4d666454845b2b8 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Thu, 2 Aug 2012 11:39:31 +0200 Subject: [PATCH] LUKS root: Fix key file check Check for null instead of empty string --- modules/system/boot/luksroot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/boot/luksroot.nix b/modules/system/boot/luksroot.nix index db25e9390ab..27c9c85eab3 100644 --- a/modules/system/boot/luksroot.nix +++ b/modules/system/boot/luksroot.nix @@ -19,7 +19,7 @@ let echo "ok" fi - ${optionalString (keyFile != "") '' + ${optionalString (keyFile != null) '' if ! test -e ${keyFile}; then echo -n "waiting 10 seconds for key file ${keyFile} to appear..." for try in $(seq 10); do