-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
modprobe: fix --check mode not being honored for persistent option #9052
modprobe: fix --check mode not being honored for persistent option #9052
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
Co-authored-by: Felix Fontein <felix@fontein.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! If nobody objects, I'll merge this in a week.
Thank you for the review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #9069 🤖 @patchback |
…9052) * modprobe: fix --check mode not being honored for persistent option * Add CHANGELOG * Update CHANGELOG * Update changelogs/fragments/9052-modprobe-bugfix.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: d-usuba <d-usuba@sakura.ad.jp> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit d0b4e91)
@salmon111 thanks a lot for fixing this! |
Backport to stable-8: 💚 backport PR created✅ Backport PR branch: Backported as #9070 🤖 @patchback |
…9052) * modprobe: fix --check mode not being honored for persistent option * Add CHANGELOG * Update CHANGELOG * Update changelogs/fragments/9052-modprobe-bugfix.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: d-usuba <d-usuba@sakura.ad.jp> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit d0b4e91)
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #9071 🤖 @patchback |
…9052) * modprobe: fix --check mode not being honored for persistent option * Add CHANGELOG * Update CHANGELOG * Update changelogs/fragments/9052-modprobe-bugfix.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: d-usuba <d-usuba@sakura.ad.jp> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit d0b4e91)
… being honored for persistent option (#9070) modprobe: fix --check mode not being honored for persistent option (#9052) * modprobe: fix --check mode not being honored for persistent option * Add CHANGELOG * Update CHANGELOG * Update changelogs/fragments/9052-modprobe-bugfix.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: d-usuba <d-usuba@sakura.ad.jp> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit d0b4e91) Co-authored-by: salmon111 <campfire@kumachans.net>
… being honored for persistent option (#9071) modprobe: fix --check mode not being honored for persistent option (#9052) * modprobe: fix --check mode not being honored for persistent option * Add CHANGELOG * Update CHANGELOG * Update changelogs/fragments/9052-modprobe-bugfix.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: d-usuba <d-usuba@sakura.ad.jp> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit d0b4e91) Co-authored-by: salmon111 <campfire@kumachans.net>
… being honored for persistent option (#9069) modprobe: fix --check mode not being honored for persistent option (#9052) * modprobe: fix --check mode not being honored for persistent option * Add CHANGELOG * Update CHANGELOG * Update changelogs/fragments/9052-modprobe-bugfix.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: d-usuba <d-usuba@sakura.ad.jp> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit d0b4e91) Co-authored-by: salmon111 <campfire@kumachans.net>
…nsible-collections#9052) * modprobe: fix --check mode not being honored for persistent option * Add CHANGELOG * Update CHANGELOG * Update changelogs/fragments/9052-modprobe-bugfix.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: d-usuba <d-usuba@sakura.ad.jp> Co-authored-by: Felix Fontein <felix@fontein.de>
SUMMARY
This change fixes an issue in the
community.general.modprobe
module where the--check
mode was not being honored when thepersistent
option was set.Previously, even in
--check
mode, the module would attempt to modify system files, which is not the expected behavior.With this fix, when
--check
mode is enabled, the module will simulate the changes without making any modifications to the system, ensuring correct dry-run behavior.Fixes #9051
ISSUE TYPE
COMPONENT NAME
modprobe
ADDITIONAL INFORMATION
--check
mode, which should not happen.After the fix:
--check
mode will no longer apply changes to the system, and will only simulate the action.