From ed2de829e1a1a1a3872da8ff9c50acfea7091175 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 14 Aug 2009 16:11:35 +0200 Subject: [PATCH] cryptroot-ask.sh: fix rd_LUKS_UUID handling --- modules.d/50plymouth/cryptroot-ask.sh | 3 ++- modules.d/90crypt/cryptroot-ask.sh | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules.d/50plymouth/cryptroot-ask.sh b/modules.d/50plymouth/cryptroot-ask.sh index 75c6550dd..9dbb44fb4 100755 --- a/modules.d/50plymouth/cryptroot-ask.sh +++ b/modules.d/50plymouth/cryptroot-ask.sh @@ -15,8 +15,9 @@ ask=1 if [ -n "$LUKS" ]; then ask=0 + luuid=${2##luks-} for luks in $LUKS; do - if [ "${2##$luks}" != "$2" ]; then + if [ "${luuid##$luks}" != "$2" ]; then ask=1 fi done diff --git a/modules.d/90crypt/cryptroot-ask.sh b/modules.d/90crypt/cryptroot-ask.sh index 5b5d895f7..9d238088d 100755 --- a/modules.d/90crypt/cryptroot-ask.sh +++ b/modules.d/90crypt/cryptroot-ask.sh @@ -15,8 +15,9 @@ ask=1 if [ -n "$LUKS" ]; then ask=0 + luuid=${2##luks-} for luks in $LUKS; do - if [ "${2##$luks}" != "$2" ]; then + if [ "${luuid##$luks}" != "$2" ]; then ask=1 fi done @@ -33,4 +34,4 @@ fi # mark device as asked >> /tmp/cryptroot-asked-$2 -exit 0 \ No newline at end of file +exit 0 -- 2.47.3