]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Fix condition for --debug mode which adds additional text after 'inactive' text.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 14 Aug 2018 12:08:52 +0000 (14:08 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 14 Aug 2018 12:08:52 +0000 (14:08 +0200)
mod-luks.sh

index 9fbf5830a24248b8e5b9fa62eb3eb466bec14302..ff877f779c21e269061fd55658ab70c4a4cf5ee5 100644 (file)
@@ -187,7 +187,7 @@ luks_crypttab() {
 
                        if [ -e "\$luksdev" ]; then
                                crypt_status=\$(cryptsetup \$cryptsetup_opt status '$dst')
-                               if [ "\${crypt_status%%is inactive.}" != "\$crypt_status" ]; then
+                               if [ "\${crypt_status%%is inactive*}" != "\$crypt_status" ]; then
                                        # is inactive
                                        cryptsetup \$cryptsetup_opt ${keyfile:+-d $keyfile} --timeout 120 open $crypttab_opt "\$luksdev" '$dst' <&1
                                fi
This page took 0.280783 seconds and 4 git commands to generate.