90crypt/parse-crypt.sh: also accept the beginning of the LUKS UUID

2e0c003435 introduced a too strict test
for LUKS UUIDs
master
Harald Hoyer 2011-08-30 14:43:57 +02:00
parent f4ca564ba6
commit 2c0b5281f5
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ else
} > $hookdir/initqueue/finished/90-crypt.sh
uuid=$luksid
while [ "$uuid" != "${uuid#*-}" ]; do uuid=${uuid%%-*}${uuid#*-}; done
printf -- '[ "x${UUIDS#*:%s:}" != "x$UUIDS" ] || exit 1\n' $uuid >> $hookdir/initqueue/finished/90-crypt.sh
printf -- '[ "x${UUIDS#*:%s*:}" != "x$UUIDS" ] || exit 1\n' $uuid >> $hookdir/initqueue/finished/90-crypt.sh

{
printf -- '[ -e /dev/disk/by-uuid/*%s* ] || ' $luksid