Bug 1663650 - crypt-gpg failed to boot with dash
Summary: crypt-gpg failed to boot with dash
Keywords:
Status: CLOSED DUPLICATE of bug 1663651
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-06 05:16 UTC by Danh Doan
Modified: 2019-01-06 15:31 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-01-06 15:31:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch (3.16 KB, application/mbox)
2019-01-06 05:16 UTC, Danh Doan
no flags Details

Description Danh Doan 2019-01-06 05:16:37 UTC
Created attachment 1518743 [details]
patch

Steps to reproduce:

- Full disk encryption,
- Luks key is encrypted with gpg
- luks key is embedded in initramfs
- cmdline is: rd.luks.key=/etc/luks/key.gpg:/
- add_dracutmodules+=" dash "
- omit_dracutmodues+=" bash "
- build dracut

Expectation:
- the system should boot with new initramfs

Actual:
- The system failed to pick the key in initramfs
- replace dash by bash and system can pick up the correct key

Root Cause:
There's some bashism inside runtime script, which uses == instead of = to compare.

I've made a patch to fix, see attachment

Comment 1 Zbigniew Jędrzejewski-Szmek 2019-01-06 15:31:36 UTC

*** This bug has been marked as a duplicate of bug 1663651 ***


Note You need to log in before you can comment on or make changes to this bug.