How to automate VMWare module kernel build after updating CachyOS kernel

Hi All.
I using CachyOS on my Fedora 41 KDE Spin, and my script in this topic not executed after updating my kernel. I create post-transaction-actions script in /etc/dnf/plugins/post-transaction-actions.d but it not executed after kernel updates. I install too python3-dnf-plugin-post-transaction-actions package to utilize post-transaction-actions script. How should I do to solve this?

This is my post-transaction-actions script:

anifyuli@ThinkPad-X280:~$ cat /etc/dnf/plugins/post-transaction-actions.d/vmware-modbuild.sh 
#!/bin/bash

# Rebuild VMWare module kernel after installing new kernel updates
kernel-*:in,up,rm:[[ -x /usr/bin/vmware-modconfig ]] && /usr/bin/vmware-modconfig --console --install-all >& /dev/null

Thanks for help me to solving this problem :pray:t2:

Recompile VMWare Workstation (or player) kernel modules on boot with systemd service

1 Like

this question might be silly, but… what brought you to use CachyOS’ kernel on Fedora in the first place?..
I mean… using a kernel from an entirely different family of distros, sounds like it could bring errors or bugs. I’m not an expert on this, and I could be wrong, but…

I use this official Copr from CachyOS maintainer and it add-ons

I can’t open it because I always get 502 error

:thinking: well… I wonder whether how actually free of bugs it is, or can be.

IDK, but I write install script on /etc/kernel/install.d/ sometimes works, and sometimes not works on generic Fedora kernel

Thanks, I’ll report again if this solution didn’t work properly

1 Like

@vgaetera, this day I get kernel updates and I poweroff & turn-on my laptop again, but services couldn’t run perfectly, so I still can’t get VMWare kernel modules automatically after updating kernel. You can see in this screenshot

So, any suggestions with it?

Restart the service and check the journal:

sudo systemctl restart vmware-modules-rebuild.service
journalctl --no-pager -b -u vmware-modules-rebuild.service

Nice, this issue solved