Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/
Date: Sat, 14 Dec 2019 00:51:51
Message-Id: 1576284440.e0ee3888e7f008636c60f9536bddaf22bffb8b70.whissi@gentoo
1 commit: e0ee3888e7f008636c60f9536bddaf22bffb8b70
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 14 00:47:20 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 14 00:47:20 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e0ee3888
7
8 initrd.scripts: openLUKS(): Reset cryptsetup_options on each iteration
9
10 Bug: https://bugs.gentoo.org/702580
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 defaults/initrd.scripts | 4 +++-
14 defaults/unlock-luks.sh | 2 +-
15 2 files changed, 4 insertions(+), 2 deletions(-)
16
17 diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
18 index 973a38a..6acbbf6 100644
19 --- a/defaults/initrd.scripts
20 +++ b/defaults/initrd.scripts
21 @@ -1717,10 +1717,12 @@ openLUKS() {
22 eval local LUKS_KEYDEV='"${CRYPT_'${TYPE}'_KEYDEV}"' LUKS_TRIM='"${CRYPT_'${TYPE}'_TRIM}"'
23 eval local OPENED_LOCKFILE='"${CRYPT_'${TYPE}'_OPENED_LOCKFILE}"'
24 local DEV_ERROR=0 KEY_ERROR=0 KEYDEV_ERROR=0
25 - local mntkey="/mnt/key/" crypt_filter_ret= cryptsetup_options=''
26 + local mntkey="/mnt/key/" crypt_filter_ret=
27
28 while true
29 do
30 + local cryptsetup_options=''
31 +
32 local gpg_cmd=""
33 if [ -e "${OPENED_LOCKFILE}" ]
34 then
35
36 diff --git a/defaults/unlock-luks.sh b/defaults/unlock-luks.sh
37 index 457aa54..0f54504 100644
38 --- a/defaults/unlock-luks.sh
39 +++ b/defaults/unlock-luks.sh
40 @@ -45,10 +45,10 @@ main() {
41
42 eval local LUKS_DEVICE='"${CRYPT_'${TYPE}'}"' LUKS_NAME="${NAME}" LUKS_KEY='"${CRYPT_KEYFILE_'${TYPE}'}"'
43 eval local LUKS_TRIM='"${CRYPT_'${TYPE}'_TRIM}"' OPENED_LOCKFILE='"${CRYPT_'${TYPE}'_OPENED_LOCKFILE}"'
44 - local cryptsetup_options
45
46 while true
47 do
48 + local cryptsetup_options=""
49 local gpg_cmd crypt_filter_ret
50
51 if [ -e "${OPENED_LOCKFILE}" ]