Hello,
After an update of the kernel, the file /boot/efi/EFI/fedora/grub.cfg has not been updated. I had to run
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg Please not that I have /dev/sdb1 766480 18068 748412 3% /boot/efi
Is it because the boot is on sdb? Should I run? grub2-install /dev/sdb
I also had to run
grubby --set-default-index=0 (it was set at 1).
Thank.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 ===========================================================================
On Wed, Feb 27, 2019 at 3:44 AM Patrick Dupre pdupre@gmx.com wrote:
Hello,
After an update of the kernel, the file /boot/efi/EFI/fedora/grub.cfg has not been updated.
This shouldn't happen if you did an EFI install but I did a conversion and my grub.cfg was not being updated. It turned out to be a symlink that had to be updated in /etc...
# ll /etc/grub2.cfg lrwxrwxrwx. 1 root root 31 Dec 17 12:48 /etc/grub2.cfg -> ../boot/efi/EFI/fedora/grub.cfg
Thanks, Richard
On Wed, Feb 27, 2019 at 1:15 PM Patrick Dupre pdupre@gmx.com wrote:
Hello,
Are you sure that it is correct? On another machine, I have: /etc/grub2.cfg -> ../boot/grub2/grub.cfg and /etc/grub2-efi.cfg -> ../boot/efi/EFI/fedora/grub.cfg
Ok, you may be right... Looking at my wife's laptop which I know installed as EFI on the front end:
# ll /etc/grub* lrwxrwxrwx. 1 root root 22 Oct 4 16:19 /etc/grub2.cfg -> ../boot/grub2/grub.cfg lrwxrwxrwx. 1 root root 31 Oct 4 16:18 /etc/grub2-efi.cfg -> ../boot/efi/EFI/fedora/grub.cfg
She has both (strange), however, on my desktop which I converted from BIOS to EFI everything is working as it should.
Thanks, Richard
On Wed, Feb 27, 2019 at 10:44 AM Patrick Dupre pdupre@gmx.com wrote:
After an update of the kernel, the file /boot/efi/EFI/fedora/grub.cfg has not been updated.
I had to run
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
You need to have a "/etc/grub2-efi.cfg to ../boot/efi/EFI/fedora/grub.cfg" symlink for "/boot/efi/EFI/fedora/grub.cfg" to be updated because "/usr/sbin/new-kernel-pkg" has
grub2EfiConfig=$(readlink -f /etc/grub2-efi.cfg 2>/dev/null) ... if [ -n "$cfgGrub2Efi" ]; then ... ARGS="--grub2 -c $grub2EfiConfig --efi \ --add-kernel=$kernelImage $DEVTREE $INITRD \ --copy-default --title "$title$debugtitle" \ ${mbkernel:+--add-multiboot="$mbkernel"} \ ${mbargs:+--mbargs="$mbargs"} \ --args="root=$rootdevice $kernargs $debugargs" \ --remove-kernel="TITLE=$title$debugtitle"" rungrubby --debug ${ARGS} rungrubby ${ARGS} $makedefault ... fi