How to avoid kernel panic in PCLinuxOS after kmod update

At 6.8.2026 there is the next updates which makes a faulty initrd.img file, which causes kernel panic at least computer, which uses legacy bios on boot.

*****************

Edit 11.8.2026: The actual reason for kernel panic is not kmod, but after last updates when making a new initrd.img file, the file is faulty. Tested on Compaq Presario CQ61 Notebook PC

rebuild-initrd-presario-cq61.txt

*****************

For avoiding kmod updates need to add exclude=kmod* to the /etc/dnf/dnf.conf file.

*****************

The problematic updates

kmod-34.2-3pclos2026.x86_64
mkinitrd-6.0.93-29pclos2026.x86_64

*****************

To avoid kernel panic, run before upgrade

sudo cp -ax /boot /boot.bak
sudo cp -ax /lib/modules /lib/modules.bak

… and after upgrade

sudo mv /boot /boot.panic
sudo cp -ax /boot.bak /boot

****************

****************