On Mon, 15 Sep 2025 01:05:10 +0200 Franta Hanzlík via users <users@lists.fedoraproject.org> wrote:
> On Sun, 14 Sep 2025 21:06:14 -0000 > "Joe Average" <sixpac...@online.de> wrote: > > > Franta Hanzlík wrote: > > > > AFAIK the module is only build once: when the new kernel first boots No, it should be build also in the posttrans scriptlet of the kernel-core RPM (with /usr/lib/kernel/install.d/95-akmodsposttrans.install from the akmods RPM), but: 1. you have to wait for "some" time before rebooting 2. this may fail with dnf5 that unlike dnf4 do not wait for a running dnf transaction to finish (waiting for a --wait option of dnf5) Refs: Bug 2011120 - kmod failed to load after upgrade Fedora using dnf system-upgrade https://bugzilla.redhat.com/show_bug.cgi?id=2011120 Calling akmods in an ExecStop https://bugzilla.redhat.com/show_bug.cgi?id=2011120#c78 Bug 2358625 - use to-be-implemented dnf5 --wait option in akmods-induced kmod installation https://bugzilla.redhat.com/show_bug.cgi?id=2358625 > > so my idea would be: just a new reboot > > cause the module for the last installed kernel should be now there and > > should load > > > > No ? > > -- > IMO waiting after first boot two minutes or so (for akmods to finish) > and rebooting again is also a pretty bad solution - maybe even worse > than my automated waiting for akmods to finish in the script and then > restarting iptables in one reboot. I agree. Since my suggestion of launching akmods in a systemd ExecStop hasn't been accepted (https://bugzilla.redhat.com/show_bug.cgi?id=2011120), I wrote a workaround similar to the initial version of akmods-shutdown.service to compile all the kmods when shutting down the machine. I can provide this if you want. Note that akmods-shutdown.service is now almost deprecated and do not do what should be expected: only calls akmods with no options. -- francis -- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue