<---- template headericclude ----->
Old Rescue Grub Entry Remains after Upgrading
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2016
    Location
    China
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Old Rescue Grub Entry Remains after Upgrading

    Hi,

    After upgrading to F24 from F22, I found the Rescue entry in GRUB menu still shows it based on F22, which means no upgrading along the system.
    Same problem link with more details:https://lists.fedoraproject.org/arch...K5OWEXWZIUKAI/

    Anyone gives me some suggestion?

    thx!

  2. #2
    Join Date
    Oct 2011
    Posts
    1,917
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Old Rescue Grub Entry Remains after Upgrading

    Why is it a problem, is it not working?

    It should work regardless of that that is made for older Fedora release. But if you prefer to have it fresh, I believe you can use dracut command to regenerate it, in conjunction with grub2-mkconfig to regenerate new grub menu.

  3. #3
    Join Date
    Oct 2016
    Location
    China
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Old Rescue Grub Entry Remains after Upgrading

    Hi, semiRocket. Thanks for your response!

    I don't think it's a problem. I just wonder that why this entry does not update along wih upgrading.

    Actually, this entry does not work correctly, but I think it's other reasons relating to Nvidia-driver.

    I have refreshed the rescue entry following your suggestion. But I found that this entry is actually based on Fedora 21 which is the distribution I installed from scratch. So, the core of rescue entry should not update when upgrading the system, am I right?

    Quote Originally Posted by semiRocket
    Why is it a problem, is it not working?

    It should work regardless of that that is made for older Fedora release. But if you prefer to have it fresh, I believe you can use dracut command to regenerate it, in conjunction with grub2-mkconfig to regenerate new grub menu.

  4. #4
    Join Date
    Aug 2009
    Posts
    11,397
    Mentioned
    98 Post(s)
    Tagged
    0 Thread(s)

    Re: Old Rescue Grub Entry Remains after Upgrading

    Actually, I have had issues with the "rescue" kernel entry for as long as they have been creating it. The only difference in it is that dracut builds a "full" initramfs instead of the stripped down one for the particular hardware you have installed.

    It uses the same kernel files, and the issue I have had is when the kernel it uses is removed, the rescue entry no longer works. So, you install Fedora, it creates the rescue entry using the same kernel. You update the kernel a few times, after the third update, the kernel gets removed, then the rescue entry will no longer work. It can't find the kernel modules to load, they have been removed.

    What you can do is to remove the /boot/vmlinuz-0-rescue* and /boot/initramfs-0-rescue files, then the next time you update your kernel, it will build a new rescue kernel.

    There are ways to manually build the rescue kernel as well, but this is the method that works best for me. Every couple of kernel updates, I delete the rescue kernel files in /boot and have it build new ones.

    Edit:
    Just rebuilding the rescue kernel, you should not have to rebuild the grub menu. All rescue kernels on the same machine are going to be named the same. So, you can rebuild it, and not have to regenerate the grub menu if the entry already exists in the grub menu.

  5. #5
    Join Date
    Oct 2016
    Location
    China
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Old Rescue Grub Entry Remains after Upgrading

    DBelton, nice explanation!

    I will remove the rescue vmlinuz and img in /boot, and wait next kernel update.

    Thanks!

    Quote Originally Posted by DBelton
    Actually, I have had issues with the "rescue" kernel entry for as long as they have been creating it. The only difference in it is that dracut builds a "full" initramfs instead of the stripped down one for the particular hardware you have installed.

    It uses the same kernel files, and the issue I have had is when the kernel it uses is removed, the rescue entry no longer works. So, you install Fedora, it creates the rescue entry using the same kernel. You update the kernel a few times, after the third update, the kernel gets removed, then the rescue entry will no longer work. It can't find the kernel modules to load, they have been removed.

    What you can do is to remove the /boot/vmlinuz-0-rescue* and /boot/initramfs-0-rescue files, then the next time you update your kernel, it will build a new rescue kernel.

    There are ways to manually build the rescue kernel as well, but this is the method that works best for me. Every couple of kernel updates, I delete the rescue kernel files in /boot and have it build new ones.

    Edit:
    Just rebuilding the rescue kernel, you should not have to rebuild the grub menu. All rescue kernels on the same machine are going to be named the same. So, you can rebuild it, and not have to regenerate the grub menu if the entry already exists in the grub menu.

Similar Threads

  1. [SOLVED]
    Boot menu "rescue" entry after fc19 upgrade
    By kjohnstn in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 10th November 2013, 05:26 PM
  2. Rename GRUB entry?
    By Rob500 in forum Using Fedora
    Replies: 2
    Last Post: 10th June 2008, 12:43 PM
  3. Grub entry for F9?
    By orbital42 in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 27th May 2008, 02:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]