Problem: Zimbra OSE trying to update CentOS 7 server kernel gives error(s), and after reboot server does not boot.
Message from syslogd@mail at Nov 14 13:30:57 …
dracut:dracut: creation of /boot/initramfs-3.10.0-1160.80.1.el7.x86_64.img failed
/sbin/dracut: line 1670: cpio: command not found
dracut: creation of /boot/initramfs-3.10.0-1160.80.1.el7.x86_64.img failed
mkinitrd failed
ERROR: installing kernel-3.10.0-1160.80.1.el7.x86_64: no space left for creating initramfs. Clean up /boot partition and re-run '/ usr/sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install 3.10.0-1160.80.1.el7.x86_64'
warning: %posttrans(kernel-3.10.0-1160.80.1.el7.x86_64) scriptlet failed, exit status 1
Non-fatal POSTTRANS scriptlet failure in rpm package kernel-3.10.0-1160.80.1.el7.x86_64
Broadcast message from systemd-journald@****com (Mon 2022-11-14 13:31:18 CET):
dracut[6250]: dracut: creation of /boot/initramfs-3.10.0-1160.80.1.el7.x86_64.img failed
Clue: cpio: command not found
Reasons: cpio is damaged
What cpio does? it copies files in and out of archives.
Solution:
yum reinstall cpio or
yum install cpio