openeuler 没有mkinitramfs和mkinitrd命令,更新initramfs失败

Issue Description:

After installing an external driver on openeuler, the driver version shown by the storcli64 command upon reboot is the old version, while the modinfo command displays the correct new version. Manually removing and reloading the driver results in the correct version being loaded.

The installation log contains two warning messages:
which: no mkinitramfs in (/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)
which: no mkinitrd in (/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)

Root Cause:

The openeuler system does not include the mkinitramfs and mkinitrd commands. Instead, the dracut command should be used to update the driver version in initramfs. The driver installation failed to properly update initramfs, so the old version of the driver is loaded upon reboot.

After installing an external driver, verify whether initramfs has been successfully updated. If not, manually run the dracut command to update it, or modify the spec file to include dracut update logic and recompile and reinstall the driver.