Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 702580

Summary: sys-kernel/genkernel-next-70 - 00-crypt.sh appends multiple -d to cryptsetup
Product: Gentoo Linux Reporter: Viz <viz>
Component: Current packagesAssignee: Ettore Di Giacinto (RETIRED) <mudler>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix 00-crypt.sh

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.