Skip to content

Fix post_transaction when running dkms autoinstall via systemd unit#527

Merged
scaronni merged 1 commit intomainfrom
post_transaction_fixes
May 12, 2025
Merged

Fix post_transaction when running dkms autoinstall via systemd unit#527
scaronni merged 1 commit intomainfrom
post_transaction_fixes

Conversation

@scaronni
Copy link
Member

When running dkms autoinstall through the systemd unit, even if there are no changes the post_transaction command is always executed.

In most cases this results in the initrd being recreated at every reboot, even without any module change.

Check that dkms autoinstall has actually installed any module before calling the post_transaction command.

@scaronni scaronni force-pushed the post_transaction_fixes branch from 52cf969 to 2947da9 Compare May 10, 2025 15:39
Copy link
Collaborator

@amilonenv amilonenv left a comment

Choose a reason for hiding this comment

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

LGTM

@scaronni scaronni merged commit 472042e into main May 12, 2025
58 checks passed
@scaronni scaronni deleted the post_transaction_fixes branch May 12, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants