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

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

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

pvalena
Copy link
Collaborator

@pvalena pvalena commented Aug 17, 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).

(cherry picked commit a669346f48cbb3278c51ba5e95b1b91f9bfdee0a from PR#584)

Resolves: RHEL-53791

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`).

(cherry picked commit a669346f48cbb3278c51ba5e95b1b91f9bfdee0a from PR#584)

Resolves: RHEL-53791
@pvalena
Copy link
Collaborator Author

pvalena commented Aug 19, 2024

@pvalena pvalena merged commit 101ee8a into main Aug 19, 2024
22 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant