diff --git a/modules.d/50plymouth/cryptroot-ask.sh b/modules.d/50plymouth/cryptroot-ask.sh index 47dd9d83..466d8db2 100755 --- a/modules.d/50plymouth/cryptroot-ask.sh +++ b/modules.d/50plymouth/cryptroot-ask.sh @@ -36,7 +36,7 @@ if [ -n "$LUKS" ]; then luuid=${2##luks-} for luks in $LUKS; do luks=${luks##luks-} - if [ "${luuid##$luks}" != "$luuid" ] || [ "$luksname" == "$luks" ]; then + if [ "${luuid##$luks}" != "$luuid" ] || [ "$luksname" = "$luks" ]; then ask=1 break fi diff --git a/modules.d/90crypt/cryptroot-ask.sh b/modules.d/90crypt/cryptroot-ask.sh index b1c18894..4ddb26eb 100755 --- a/modules.d/90crypt/cryptroot-ask.sh +++ b/modules.d/90crypt/cryptroot-ask.sh @@ -35,7 +35,7 @@ if [ -n "$LUKS" ]; then luuid=${2##luks-} for luks in $LUKS; do luks=${luks##luks-} - if [ "${luuid##$luks}" != "$luuid" ] || [ "$luksname" == "$luks" ]; then + if [ "${luuid##$luks}" != "$luuid" ] || [ "$luksname" = "$luks" ]; then ask=1 break fi