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.
master
Derek Hageman 2020-04-30 18:40:13 -06:00 committed by Harald Hoyer
parent c6a2ebffe5
commit cb9e6881dd
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ install() {
set -- ${luksoptions} set -- ${luksoptions}
IFS="${OLD_IFS}" IFS="${OLD_IFS}"


forceentry=""
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case $1 in case $1 in
force) force)