90crypt/parse-crypt.sh: also accept the beginning of the LUKS UUID
authorHarald Hoyer <harald@redhat.com>
Tue, 30 Aug 2011 12:43:57 +0000 (14:43 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 30 Aug 2011 12:43:57 +0000 (14:43 +0200)
2e0c003435bbc0751cdf7466c0faebe7bfc7445b introduced a too strict test
for LUKS UUIDs

modules.d/90crypt/parse-crypt.sh

index 1e78aa9..2ab3a9f 100755 (executable)
@@ -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