On Tue, 27 Jun 2017 12:12:29 -0600
William <mattison.computer(a)yahoo.com> wrote:
I want the grub menu to offer the three most recent patches of
Fedora, the most recent Fedora rescue shell, and windows-7, in that
order. (This is a dual-boot system.) And I want the shells launched
by the menu entries to be correct. How do I get that accomplished -
the correct Fedora-25 way? If it matters, the motherboard uses UEFI
I'm not sure if it matters as I don't use EFI. But, there is a program
called grub2-mkconfig that can be used to regenerate the grub.cfg file
in /boot/grub2, and it might work in /boot/efi. It is in the package
cd into the directory /boot/efi and type the command
grub2-mkconfig -o grub.cfg
as root. That should leave you with a valid grub menu.
But, I think you might have to fix the /etc/fstab file also before you
do the above. If you cloned the drive, it will still be using the block
ids for the previous drive in the /etc/fstab.
Use the command blkid to find the UUIDs of the partitions on the new
drive. And edit /etc/fstab so they are correct for the / and /boot
partition of your new drive.
Then run the grub2-mkconfig command, and the next boot should give you
the menu you want.
Again, this would work for grub2 boot, but I'm not sure about efi boot.