Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(RHEL-26114) feat(dracut-init.sh): give --force-add precedence over --omit #95

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

pvalena
Copy link
Contributor

@pvalena pvalena commented Aug 19, 2024

This gives precedence of force_add_dracutmodules to omit_dracutmodules,
as there is not other way to override omit_dracutmodules list, and users
would expect it to be overriden from command line.

Ref: dracut-ng/dracut-ng#569

This way, --add retains it behaviour, and --force-add gains additional
functionality in non-hostonly mode. The module may still be skipped
if the module check returns 1, but it should throw error (as I'd expect
for --force-add).

Ref: https://issues.redhat.com/browse/RHEL-26114

(cherry picked from commit a669346f48cbb3278c51ba5e95b1b91f9bfdee0a)

Resolves: RHEL-26114

This gives precedence of force_add_dracutmodules to omit_dracutmodules,
as there is not other way to override omit_dracutmodules list, and users
would expect it to be overriden from command line.

Ref: dracut-ng/dracut-ng#569

This way, `--add` retains it behaviour, and `--force-add` gains additional
functionality in non-hostonly mode. The module may still be skipped
if the module check returns 1, but it should throw error (as I'd expect
for `--force-add`).

Ref: https://issues.redhat.com/browse/RHEL-26114

(cherry picked from commit a669346f48cbb3278c51ba5e95b1b91f9bfdee0a)

Resolves: RHEL-26114
@pvalena pvalena added the bug Something isn't working label Aug 19, 2024
@pvalena pvalena self-assigned this Aug 19, 2024
@github-actions github-actions bot changed the title feat(dracut-init.sh): give --force-add precedence over --omit (RHEL-26114) feat(dracut-init.sh): give --force-add precedence over --omit Aug 19, 2024
Copy link

github-actions bot commented Aug 19, 2024

Commit validation

Tracker - RHEL-26114

The following commits need an inspection

commit note
888e74d - feat(dracut-init.sh): give --force-add precedence over --omit Missing upstream reference ‼️

Tracker validation

Success

🟢 Tracker RHEL-26114 has set desired product: rhel-9.4
🟢 Tracker RHEL-26114 has set desired component: dracut
🟢 Tracker RHEL-26114 has been approved


Pull Request validation

Failed

🔴 Failed or pending checks - testing-farm:centos-stream-9-x86_64[failure],test (fedora:latest, 41)[failure],test (fedora:latest, 40)[failure],test (fedora:latest, 36)[failure],test (fedora:latest, 31)[failure],test (fedora:latest, 35)[failure],test (fedora:latest, 30)[failure],test (fedora:latest, 17)[failure],test (fedora:latest, 13)[failure],test (fedora:latest, 14)[failure],test (fedora:latest, 12)[failure],test (fedora:latest, 11)[failure],test (fedora:latest, 10)[failure]
🔴 Review - Missing review from a member

@pvalena
Copy link
Contributor Author

pvalena commented Aug 19, 2024

Tested in RHEL-10. Behaviour should be identical.
https://gist.github.com/pvalena/f8cdb9aab623e2f713d823df1824fa72

LGTM.

@pvalena pvalena merged commit 097d4bd into redhat-plumbers:main Aug 19, 2024
31 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant