Kernel panic on s390x after manual initramfs regeneration without zipl execution
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 10
IBM Z(s390x)zipl
Issue
-
After regenerating the initramfs using dracut -f without executing the zipl command, the system fails to boot and encounters a kernel panic with error:
No filesystem could mount root, tried: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Resolution
-
ziplimmediately after any use ofdracutto regenerate the bootmap:# zipl -
After applying the workaround or manually running
zipl, verify timestamps:# ls -l /boot/initramfs-*.img /boot/bootmapEnsure that
/boot/bootmapis newer than or equal to the latestinitramfsfiles.
Root Cause
IBM Z (s390x)systems useziplto generate abootmapcontaining raw block addresses of thekernelandinitramfs. When the initramfs is regenerated withdracut -f, the physical layout on disk may change. Since dracut does not automatically callzipl, thebootmapremains stale, leading to a bootloader mismatch and kernel panic.
Diagnostic Steps
-
Confirm if the
initramfswas regenerated recently:# ls -l /boot/initramfs-*.img -
Check if
/boot/bootmapis older than theinitramfs:# stat /boot/bootmap # stat /boot/initramfs-<kernel-version>.img -
Check if
ziplwas executed recently (not guaranteed to log):# journalctl | grep zipl
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.