How to avoid kernel panic in PCLinuxOS after kmod update

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

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