Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702580 - sys-kernel/genkernel-next-70 - 00-crypt.sh appends multiple -d to cryptsetup
Summary: sys-kernel/genkernel-next-70 - 00-crypt.sh appends multiple -d to cryptsetup
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ettore Di Giacinto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-11 19:32 UTC by Viz
Modified: 2020-08-20 12:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix 00-crypt.sh (patch,644 bytes, patch)
2019-12-11 19:32 UTC, Viz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viz 2019-12-11 19:32:43 UTC
Created attachment 599240 [details, diff]
Patch to fix 00-crypt.sh

Every time LUKS key failed to get decrypted, 00-crypt.sh appends another `-d` to `cryptsetup_opts` with `cryptsetup_opts="${cryptsetup_opts} -d ${mntkey}${luks_key}"`.

This is expected to be reset each time.

Attached a patch to fix this.
Comment 1 Larry the Git Cow gentoo-dev 2019-12-14 00:51:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e0ee3888e7f008636c60f9536bddaf22bffb8b70

commit e0ee3888e7f008636c60f9536bddaf22bffb8b70
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-12-14 00:47:20 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-12-14 00:47:20 +0000

    initrd.scripts: openLUKS(): Reset cryptsetup_options on each iteration
    
    Bug: https://bugs.gentoo.org/702580
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 defaults/initrd.scripts | 4 +++-
 defaults/unlock-luks.sh | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-12-14 00:52:20 UTC
Thank you for the report. sys-kernel/genkernel had a similar problem!
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-20 12:51:00 UTC
Package removed.