]> git.ipfire.org Git - thirdparty/dracut.git/commit
90crypt/module-setup.sh: fix force on multiple lines
authorDerek Hageman <hageman@inthat.cloud>
Fri, 1 May 2020 00:40:13 +0000 (18:40 -0600)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 1 May 2020 09:43:47 +0000 (11:43 +0200)
commitcb9e6881dde7ec34e11f6f38727602d6d841a04f
tree11fb6cc66135bfe9ddc665fecd0d4e9c98e75edc
parentc6a2ebffe5812bf45a17d90208d9bb1044b6dba0
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.
modules.d/90crypt/module-setup.sh