To fix an unbootable SLES15 system, I booted the Rescue image, mounted the existing system to /mnt
, and then did chroot /mnt
(I'm leaving out the details, as those are probably known (or found in How do you create a chroot environment for OpenSUSE Leap?)).
When trying to rebuild the initrd using dracut
there is the problem that the kernel being used in the rescue system does not match the kernel found in the chroot
environment.
For example the output is:
dracut: cannot find module directory /lib/modules/5.3.18.57-default
(5.3.18.57-default
is the kernel from the rescue system; the kernel that does not boot is 5.3.18-150300.59.46-default
for example)
I'm unsure what the correct syntax will be; do I have to spoecify the full path for the initrd and kernel, and if so the "vmlinuz" variant, or the "vmlinux.gz" variant?