From aea5fc4a9d686c451538c7d4e900292897e7f832 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 17 Oct 2013 18:14:35 +0200 Subject: [PATCH] 00-crypt.sh: add tailing "/" to ${REAL_ROOT} grep --- defaults/initrd.d/00-crypt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/initrd.d/00-crypt.sh b/defaults/initrd.d/00-crypt.sh index c1c942d..d18fb38 100755 --- a/defaults/initrd.d/00-crypt.sh +++ b/defaults/initrd.d/00-crypt.sh @@ -42,7 +42,7 @@ _open_luks() { # but rather use the value from root=, which is # in ${REAL_ROOT} if [ "${LUKS_NAME}" = "root" ]; then - if echo "${REAL_ROOT}" | grep -q "^/dev/mapper"; then + if echo "${REAL_ROOT}" | grep -q "^/dev/mapper/"; then LUKS_NAME="$(basename ${REAL_ROOT})" fi fi