RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2037897 - Please backport "fix(dracut): be more robust when using 'set -u'"
Summary: Please backport "fix(dracut): be more robust when using 'set -u'"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: dracut
Version: 9.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Pavel Valena
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 2066816
Blocks: 2022420
TreeView+ depends on / blocked
 
Reported: 2022-01-06 19:13 UTC by Renaud Métrich
Modified: 2022-08-17 18:25 UTC (History)
4 users (show)

Fixed In Version: dracut-057-13.git20220816.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-17 18:25:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github dracutdevs dracut pull 1683 0 None Merged fix(dracut): be more robust when using 'set -u' 2022-02-04 16:13:32 UTC
Red Hat Issue Tracker RHELPLAN-107008 0 None None None 2022-01-06 19:15:29 UTC

Description Renaud Métrich 2022-01-06 19:13:48 UTC
Description of problem:

See PR https://github.com/dracutdevs/dracut/pull/1683.
This is required to implement BZ# 2022420 because clevis-luks-askpath makes use of 'set -u' for robustness.


Version-Release number of selected component (if applicable):

dracut-055-10.git20210824.el9.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Implement RFE #2022420 on a Luks system with clevis+tang and boot the system with 'rd.debug'

Actual results:

clevis-luks-askpass dies:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
Jan 06 18:18:37 vm-rhel9 clevis-luks-askpass[497]: //usr/bin/clevis-luks-common-functions@33(enable_debugging): set -e
Jan 06 18:18:37 vm-rhel9 clevis-luks-askpass[497]: /usr/libexec/clevis-luks-askpass: line 26: FUNCNAME[0]: unbound variable
 :
Jan 06 18:18:37 vm-rhel9 systemd[1]: Received SIGCHLD from PID 497 (clevis-luks-ask).
Jan 06 18:18:37 vm-rhel9 systemd[1]: Child 497 (clevis-luks-ask) died (code=exited, status=1/FAILURE)
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

Expected results:

clevis-luks-askpass executes properly without dying

Comment 3 David Tardon 2022-07-29 05:46:38 UTC
Hello, please test, if you can, whether the planned rebase for 9.1 works for you.

RPMS: https://github.com/pvalena/rpms/tree/main/dracut/2066816

Comment 4 Sergio Correia 2022-08-01 12:16:31 UTC
Hi David: tested with dracut-057-10.git20220721 and it works, thanks!


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