]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
crypt: refix rd_LUKS_UUID handling
authorHarald Hoyer <harald@redhat.com>
Thu, 5 Nov 2009 14:57:52 +0000 (15:57 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 5 Nov 2009 16:06:26 +0000 (17:06 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=533177

modules.d/50plymouth/cryptroot-ask.sh
modules.d/90crypt/cryptroot-ask.sh

index 218808897aa3ee0efed437af9ba4c1bb75c8daa1..ff28660186b6e4b050a27db6362708d3a088e3d4 100755 (executable)
@@ -17,7 +17,8 @@ if [ -n "$LUKS" ]; then
     ask=0
     luuid=${2##luks-}
     for luks in $LUKS; do
-       if [ "${luuid##$luks}" != "$2" ]; then
+       luks=${luks##luks-}
+       if [ "${luuid##$luks}" != "$luuid" ]; then
            ask=1
        fi
     done
index 7872d6470e93bfc9c8d8b672fead55b2deba3cdb..f945d54325e6769e6e2bb9f794567e02feb5398d 100755 (executable)
@@ -17,7 +17,8 @@ if [ -n "$LUKS" ]; then
     ask=0
     luuid=${2##luks-}
     for luks in $LUKS; do
-       if [ "${luuid##$luks}" != "$2" ]; then
+        luks=${luks##luks-}
+       if [ "${luuid##$luks}" != "$luuid" ]; then
            ask=1
        fi
     done