From: Derek Hageman Date: Fri, 1 May 2020 00:40:13 +0000 (-0600) Subject: 90crypt/module-setup.sh: fix force on multiple lines X-Git-Tag: 051~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9e6881dde7ec34e11f6f38727602d6d841a04f;p=thirdparty%2Fdracut.git 90crypt/module-setup.sh: fix force on multiple lines The first line in crypttab with a "force" option causes all subsequent lines to be included as if they also had it set because the variable used to track it is not reset between loop iterations. So fix that by just setting it to empty before the check for the force option. --- diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh index 3bce24113..e3d6338f1 100755 --- a/modules.d/90crypt/module-setup.sh +++ b/modules.d/90crypt/module-setup.sh @@ -113,6 +113,7 @@ install() { set -- ${luksoptions} IFS="${OLD_IFS}" + forceentry="" while [ $# -gt 0 ]; do case $1 in force)