rescue kernel

Chris Murphy lists at colorremedies.com
Mon Feb 9 22:06:31 UTC 2015


On Mon, Feb 9, 2015 at 2:42 PM, Patrick Dupre <pdupre at gmx.com> wrote:
> Hello,
>
> I tried to generate a new rescue kernel.
> I did:
>  /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh $(uname -r) /boot/vmlinuz-$(uname -r)
>
> I did not get any thing done.
> Thus I checked the file:
>  /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh
>
> and commented the line:
> [[ -f $INITRDFILE ]] && [[ -f $NEW_KERNEL_IMAGE ]] && exit 0
> There is already and lod rescue kernel thus it does not generate a new one!
> Is it normal?

Yes. There is only one rescue initramfs created, so you have to delete
one to get a new one.

>
> Then I got:
> grubby fatal error: unable to find a suitable template
>
> (due to  new-kernel-pkg --install 3.18.5-101.fc20.x86_64 --kernel-image /boot/vmlinuz-0-rescue-f14e53f3162847d4ae17fd1ca988e33c --initrdfile /boot/initramfs-0-rescue-f14e53f3162847d4ae17fd1ca988e33c.img --banner "Fedora 20 Rescue f14e53f3162847d4ae17fd1ca988e33c")

To know for sure you need to debug it. I think bash -x in front of
new-kernel-pkg may work to expose the exact grubby command used. Then
you use that same grubby command manually, but add --debug flag and
see what it's complaining about.

What filesystem is /boot on?


-- 
Chris Murphy


More information about the users mailing list