Skip to content

Minor fixes for the nvmf module - #2564

Open
aafeijoo-suse wants to merge 2 commits into
dracut-ng:mainfrom
aafeijoo-suse:nvmf-fix
Open

Minor fixes for the nvmf module#2564
aafeijoo-suse wants to merge 2 commits into
dracut-ng:mainfrom
aafeijoo-suse:nvmf-fix

Conversation

@aafeijoo-suse

Copy link
Copy Markdown
Contributor

See individual commits.

Checklist

  • I have tested it locally
  • I have reviewed and updated any documentation if relevant
  • I am providing new code and test(s) for it

`set -- $1` reassigns the positional parameters, so when the warning message is
printed, "$1" does not contain anymore all the arguments passed via
`rd.nvmf.discover=`.

Follow-up for 2f03d69
@aafeijoo-suse
aafeijoo-suse requested a review from a team as a code owner August 5, 2026 09:36
@github-actions github-actions Bot added modules Issue tracker for all modules nvmf Issues related to the nvmf module labels Aug 5, 2026
devkontrol
devkontrol previously approved these changes Aug 5, 2026

@devkontrol devkontrol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC @mwilck @ johnmeneghini

Comment thread modules.d/74nvmf/parse-nvmf-boot-connections.sh Outdated
Comment thread modules.d/74nvmf/parse-nvmf-boot-connections.sh Outdated
Comment thread modules.d/74nvmf/parse-nvmf-boot-connections.sh Outdated
`nbft_run_jq()` defaults to `jq -e`, which exits 1 whenever the last output is
null or false, so a malformed JSON with a missing or null ".hfi" field continues
the loop without incrementing the `$j` index used in the exit condition.

Fixes b490f6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modules Issue tracker for all modules nvmf Issues related to the nvmf module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants