GRUB can't find the updated Mageia kernels.

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 26th, '21, 11:03

If it is an old machine (upgraded Mageia/other OS several times) it is possible that the legacy grub was used. That means it is /boot/grub/ instead of /boot/grub2/. But im not 100% sure about that.


Thanks for all the help you are giving. Didn't have time to look into it yesterday. I'll try removing first kernel and see what happens.

The work machine is "older" in a sense but all these machines are EFI and on my work box it is Mageia 8 installed as
cauldron. Now set to release.

The Problem Child at home is the infamous GPD WIN MAX. The 1st one not the remake. I wanted the AMD 2021 but their prices were insane. I bought a normal sized and normal laptop with a 5800H Ryzen 7 for LESS or the same as they want retail for the 2021 release.

They also refused to FIX this CRAP :| screen? I ain't gonna pay money, lots of money to stick an AMD board $700 crowd fund $900 retail and you had to take it apart and do it yourself in the machine with a crap screen nor pay the rate or price of name brand laptops with newer CPUS and better hardware overall, better warranty anyway for a reiteration of the same thing with the same CRAP screen. (Guess they are pushing for folks to only use Windoz.)

It's like last years 2020 i5 release. EFI and so pretty recent and generally I try to avoid new new hardware to save myself the headache.

2021 Lenovo Yoga pro 7 is actually so far the 'best' Linux experience I have had on any of my hardware. Since all my hardware is INTEL except it... we just won't go there.

All EFI though and like I said that was new yesterday with work machine. So it may ultimately end sent in as a bug as suggested.

On another machine now. I'll probably get to the problem child tomorrow.
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby benmc » Nov 26th, '21, 22:18

unless the applications you require in Garuda access to specific hardware, is there a reason you cannot put Garuda into a virtual machine?
this would remove the competing grub issues.

on my hardware, virtual box guest systems are almost as fast as the host, so unless you are hardware limited, it may be a valid option.
benmc
 
Posts: 1175
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 27th, '21, 11:34

benmc wrote:unless the applications you require in Garuda access to specific hardware, is there a reason you cannot put Garuda into a virtual machine?
this would remove the competing grub issues.

on my hardware, virtual box guest systems are almost as fast as the host, so unless you are hardware limited, it may be a valid option.


Because Garuda was here first. Then I found I had so much room that I added Mageia which is better daily for my common desktop usage.

In that regard, since the problem is now cropping up on my work box which is Mageia as the main. Mageia grub and all. This problem seems like it may be something else.

So it is no longer seemingly related to it being booted by another grub or by chainload.

My work Machine is just Mageia. After the last update as I said above, same problem cropped up there.

So at this point having a separate partition with the OS is good as I'll have something to boot into if the problem becomes unmanageable.

I seldom use virtual unless I have to run Windoz specific stuff. I've never found a need for it with Linux and what I found is I end up with a chunk of my memory unusable being saved or dedicated to an OS in VM. (Example. I did have to put in a Windoz VM on my work machine and I found later I am always missing that chunk of memory and well, my work box is really kinda slow. It's an INTEL NUC with Celeron processors. It also has a limit only of 8gb memory it can take max. I kind of 'feel' that lack of memory sometimes. Things get a little slow. Like with heavy web browsing. Several programs open.)

In addition actually yes. Garuda needs full access to Graphics what there is on that unit.(Onboard Intel Graphics) STEAM games. AS well as Playstation 1 and 2 immulation. I don't think that is going to work well in VM.

I'm not really into that but from what I have read to get passthrough you need a separate dedicated GPU. Which I don't have. I am an EXTREMELY casual gamer. When I can even find the time.

For Windoz, the stuff I might need will never need any accelerated graphics so it's OK for VM but again only if in my work I have no choice and need some Windoz specific program.
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 27th, '21, 11:50

From the Problem Child here is the grub.cfg:

Code: Select all
cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
else
  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768x32
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
else
  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogoBold-16.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogoBold-20.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogoBold-28.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogoRegular-20.pf2
insmod png
set theme=($root)/boot/grub2/themes/maggy/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=18
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=18
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/08_fallback_counting ###
insmod increment
# Check if boot_counter exists and boot_success=0 to activate this behaviour.
if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
  # if countdown has ended, choose to boot rollback deployment,
  # i.e. default=1 on OSTree-based systems.
  if  [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
    set default=1
    set boot_counter=-1
  # otherwise decrement boot_counter
  else
    decrement boot_counter
  fi
  save_env boot_counter
fi
### END /etc/grub.d/08_fallback_counting ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Mageia' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-simple-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
        load_video
        set gfxpayload=auto
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
        else
          search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
        fi
        linux   /boot/vmlinuz-5.10.78-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
        initrd  /boot/initrd-5.10.78-desktop-1.mga8.img
}
submenu 'Advanced options for Mageia' $menuentry_id_option 'gnulinux-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        menuentry 'Mageia (5.10.78-desktop-1.mga8) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.78-desktop-1.mga8-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.78-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-5.10.78-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.78-desktop-1.mga8) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.78-desktop-1.mga8-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.78-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-5.10.78-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.75-desktop-1.mga8) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.75-desktop-1.mga8-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.75-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-5.10.75-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.75-desktop-1.mga8) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.75-desktop-1.mga8-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.75-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-5.10.75-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.70-desktop-1.mga8) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.70-desktop-1.mga8-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.70-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-5.10.70-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.70-desktop-1.mga8) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.70-desktop-1.mga8-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.70-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-5.10.70-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.62-desktop-1.mga8) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.62-desktop-1.mga8-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.62-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-5.10.62-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.62-desktop-1.mga8) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.62-desktop-1.mga8-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.62-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-5.10.62-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.16-desktop-1.mga8) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.16-desktop-1.mga8-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.16-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-5.10.16-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.16-desktop-1.mga8) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.16-desktop-1.mga8-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.16-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-5.10.16-desktop-1.mga8.img
        }
        menuentry 'Mageia (desktop) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-desktop-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-desktop root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-desktop.img
        }
        menuentry 'Mageia (desktop) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-desktop-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-desktop root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-desktop.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_reset_boot_success ###
# Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  set menu_hide_ok=1
else
  set menu_hide_ok=0
fi
# Reset boot_indeterminate after a successful boot
if [ "${boot_success}" = "1" ] ; then
  set boot_indeterminate=0
# Avoid boot_indeterminate causing the menu to be hidden more than once
elif [ "${boot_indeterminate}" = "1" ]; then
  set boot_indeterminate=2
fi
# Reset boot_success for current boot
set boot_success=0
save_env boot_success boot_indeterminate
### END /etc/grub.d/10_reset_boot_success ###

### BEGIN /etc/grub.d/12_menu_auto_hide ###
if [ x$feature_timeout_style = xy ] ; then
  if [ "${menu_show_once}" ]; then
    unset menu_show_once
    save_env menu_show_once
    set timeout_style=menu
    set timeout=60
  elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then
    set orig_timeout_style=${timeout_style}
    set orig_timeout=${timeout}
    if [ "${fastboot}" = "1" ]; then
      # timeout_style=menu + timeout=0 avoids the countdown code keypress check
      set timeout_style=menu
      set timeout=0
    else
      set timeout_style=hidden
      set timeout=1
    fi
  fi
fi
### END /etc/grub.d/12_menu_auto_hide ###

### BEGIN /etc/grub.d/14_menu_show_once ###
if [ x$feature_timeout_style = xy ]; then
  if [ "${menu_show_once_timeout}" ]; then
    set timeout_style=menu
    set timeout="${menu_show_once_timeout}"
    unset menu_show_once_timeout
    save_env menu_show_once_timeout
  fi
fi
### END /etc/grub.d/14_menu_show_once ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-C271-A5AA' {
        savedefault
        insmod part_gpt
        insmod fat
        search --no-floppy --fs-uuid --set=root C271-A5AA
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

# Other OS found, undo autohiding of menu unless menu_auto_hide=2
if [ "${orig_timeout_style}" -a "${menu_auto_hide}" != "2" ]; then
  set timeout_style=${orig_timeout_style}
  set timeout=${orig_timeout}
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
        fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###



Bit long...
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 27th, '21, 12:42

I have removed actually several kernels. Then did an update to the latest 5.15.4 kernel. After testing with deleted kernels. Nothing changed. Same error messages.

I updated grub in Mageia and update it in Garuda. I still can't boot anything with Mageia Grub. Will use Command Center to try to reinstall grub to this partition and see if that helps.

Code: Select all
update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-5.15.4-desktop-1.mga8
Found initrd image: /boot/initrd-5.15.4-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-5.10.70-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.70-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-5.10.62-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.62-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Found Garuda Linux on /dev/sda2
Adding boot menu entry for UEFI Firmware Settings ...
done



Did not delete/remove 5.10.62 because it is now the ONLY kernel that will boot and ONLY from Garuda. Not in Chainload rom Mageia's grub.

I can send same info from my work box as this problem did suddenly pop up there as well. I had to drop back a few kernels for it to boot but at least it did. That Grub is in EFI boot vs on the partition as this one is.

current contents of grub.cfg:

Code: Select all
cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
else
  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768x32
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
else
  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogoBold-16.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogoBold-20.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogoBold-28.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogoRegular-20.pf2
insmod png
set theme=($root)/boot/grub2/themes/maggy/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=18
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=18
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/08_fallback_counting ###
insmod increment
# Check if boot_counter exists and boot_success=0 to activate this behaviour.
if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
  # if countdown has ended, choose to boot rollback deployment,
  # i.e. default=1 on OSTree-based systems.
  if  [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
    set default=1
    set boot_counter=-1
  # otherwise decrement boot_counter
  else
    decrement boot_counter
  fi
  save_env boot_counter
fi
### END /etc/grub.d/08_fallback_counting ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Mageia' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-simple-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
        load_video
        set gfxpayload=auto
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
        else
          search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
        fi
        linux   /boot/vmlinuz-5.15.4-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
        initrd  /boot/initrd-5.15.4-desktop-1.mga8.img
}
submenu 'Advanced options for Mageia' $menuentry_id_option 'gnulinux-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        menuentry 'Mageia (5.15.4-desktop-1.mga8) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.15.4-desktop-1.mga8-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.15.4-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-5.15.4-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.15.4-desktop-1.mga8) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.15.4-desktop-1.mga8-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.15.4-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-5.15.4-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.70-desktop-1.mga8) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.70-desktop-1.mga8-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.70-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-5.10.70-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.70-desktop-1.mga8) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.70-desktop-1.mga8-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.70-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-5.10.70-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.62-desktop-1.mga8) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.62-desktop-1.mga8-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.62-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-5.10.62-desktop-1.mga8.img
        }
        menuentry 'Mageia (5.10.62-desktop-1.mga8) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.10.62-desktop-1.mga8-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-5.10.62-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-5.10.62-desktop-1.mga8.img
        }
        menuentry 'Mageia (desktop) 8' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-desktop-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
        savedefault
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-desktop root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro  splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
                initrd  /boot/initrd-desktop.img
        }
        menuentry 'Mageia (desktop) 8 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-desktop-recovery-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
                load_video
                set gfxpayload=auto
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  1e9b30cb-b17c-4508-b15d-81ae3721a228
                else
                  search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
                fi
                linux   /boot/vmlinuz-desktop root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
                initrd  /boot/initrd-desktop.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_reset_boot_success ###
# Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  set menu_hide_ok=1
else
  set menu_hide_ok=0
fi
# Reset boot_indeterminate after a successful boot
if [ "${boot_success}" = "1" ] ; then
  set boot_indeterminate=0
# Avoid boot_indeterminate causing the menu to be hidden more than once
elif [ "${boot_indeterminate}" = "1" ]; then
  set boot_indeterminate=2
fi
# Reset boot_success for current boot
set boot_success=0
save_env boot_success boot_indeterminate
### END /etc/grub.d/10_reset_boot_success ###

### BEGIN /etc/grub.d/12_menu_auto_hide ###
if [ x$feature_timeout_style = xy ] ; then
  if [ "${menu_show_once}" ]; then
    unset menu_show_once
    save_env menu_show_once
    set timeout_style=menu
    set timeout=60
  elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then
    set orig_timeout_style=${timeout_style}
    set orig_timeout=${timeout}
    if [ "${fastboot}" = "1" ]; then
      # timeout_style=menu + timeout=0 avoids the countdown code keypress check
      set timeout_style=menu
      set timeout=0
    else
      set timeout_style=hidden
      set timeout=1
    fi
  fi
fi
### END /etc/grub.d/12_menu_auto_hide ###

### BEGIN /etc/grub.d/14_menu_show_once ###
if [ x$feature_timeout_style = xy ]; then
  if [ "${menu_show_once_timeout}" ]; then
    set timeout_style=menu
    set timeout="${menu_show_once_timeout}"
    unset menu_show_once_timeout
    save_env menu_show_once_timeout
  fi
fi
### END /etc/grub.d/14_menu_show_once ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-C271-A5AA' {
        savedefault
        insmod part_gpt
        insmod fat
        search --no-floppy --fs-uuid --set=root C271-A5AA
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

# Other OS found, undo autohiding of menu unless menu_auto_hide=2
if [ "${orig_timeout_style}" -a "${menu_auto_hide}" != "2" ]; then
  set timeout_style=${orig_timeout_style}
  set timeout=${orig_timeout}
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
        fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###



If this needs to be reported as a bug of some kind, does anyone have an suggestions as to how I would describe this issue?
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 27th, '21, 12:51

Update, reinstalling Grub with control center now allows me to boot 5.10.62 kernel.

All else fail. The messages as above. about Sparse then about not existing.

I have no idea where to go from here. Let me know if I should resend the grub.cfg again. Thank you all.
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby sturmvogel » Nov 27th, '21, 14:14

If you open a bug report please avoid to mix your machines and the output! It's really confusing and hard to follow!

I would try this on the Mageia bootloader acording https://forum.manjaro.org/t/grub-error-sparse-file-not-allowed/20267/4

error which says that a sparse file is not allowed
To work around it edit your /etc/default/grub and change from:

GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved
To

GRUB_SAVEDEFAULT=false
GRUB_DEFAULT=0

rebuild grub config:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Depending on your requirements you may need to change other settings as well.


So it seems, that your Mageia Bootloader is on a btrfs partition. Mageia grub tries to write the grubenv file, but can't because it is not capable to write on btrfs.

Suse worked around this and writes the grubenv to another filesystem in this case.
https://forums.opensuse.org/showthread.php/523940-error-sparse-file-not-allowed-at-boot

There is no easy/best solution for this. Either put Garuda in a VM as suggested by benmc (Mageia Bootloader has to be written into GPT/EFI to be able to boot, and maybe your machine needs formatting and reinstallation to get rid of btrfs). Or if you have two separate HDD/SSD, separate install Mageia and Garuda (Mageia with standard ext4 and Garuda with standard btrfs?). The bootloaders goes to the respective EFI/GPT partion of their own HDD/SSD. So you can chainload or probe other OS...
sturmvogel
 
Posts: 678
Joined: Jul 30th, '12, 00:39

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 27th, '21, 17:05

So it seems, that your Mageia Bootloader is on a btrfs partition. Mageia grub tries to write the grubenv file, but can't because it is not capable to write on btrfs.


Ext4. The only thing BTRFS is Garuda because that is it's default install.

Mageia partition is Ext4. I will try the changes and rebuild as suggested.

Though the issue started on this machine.

I feel it important to note that it is now happening on another machine and one that isn't a dual boot but is just Mageia grub on EFI on ext4. (That is all partitions are ext4 other than EFI boot. I have a storage partition where I keep files etc)

Though there I am not getting the "sparse" message. Just the message about too many links and that the file doesn't exist.

The concern for me is that machine was fine until I updated it to 5.10.48.

This one was fine until 5.10.45 but hasn't changed with 5.10.48 either.

Actually I will have to check my work machine again. I am not sure it has 5.10.45. Maybe just 5.10.48 meaning I was running 5.10.70 before the last update.

There was a time period I was not on it and when I was, did not have enough time to run update.

Also, it does make me wary to update at the moment. I have a total of 4 machines with Mageia on them.

I just got the replacement fan for one running Mageia 8 from Cauldron and it has a really big stack of kernels but hasn't had an issue. On that machine though I use Refind for booting. It also has Mageia 7 updated to 8. (It has been down for a couple months waiting on the cooling fan. Now it's up but I am wary to actually update it and start having issues.)

First here I will try your suggestions on this machine and see the results and report them here.

Thank you very much for your help and suggestions.
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 27th, '21, 18:01

Mageia Bootloader has to be written into GPT/EFI to be able to boot


I see, in options when installing it and telling it install Grub to partition I told it 'not' to touch efi.

However now I went into control center and told it reinstall grub and did not check that option.

Still the same results nothing changed at all.

I did alter the /etc/default/grub and rebuilt with those commands.

Just the same thing.

Code: Select all
lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME        FSTYPE     SIZE MOUNTPOINT                                               LABEL
loop0       squashfs 442.6M /var/lib/anbox/rootfs
sda                  238.3G
├─sda1      vfat       299M /boot/efi
├─sda2      btrfs    121.8G /var/lib/anbox/rootfs/data
├─sda3      ext4     106.1G /run/media/bear/1e9b30cb-b17c-4508-b15d-81ae3721a228
└─sda4      swap        10G [SWAP]
zram0                 15.4G [SWAP]
nvme0n1              476.9G
├─nvme0n1p1 vfat       100M                                                          SYSTEM
├─nvme0n1p2            128M
├─nvme0n1p3 ntfs       100G                                                          Windows
├─nvme0n1p4 ntfs     364.7G
└─nvme0n1p5 ntfs        12G                                                          Recovery



This is a list of the partitions. If I told Mageia to put grub on it's partition it should be on an ext4 partition.

However if Mageia grub won't boot without being in EFI why is there an option to put grub on the partition?

In Gparted if this is important, Magiea partition is listed as "Legacy Boot". Does Mageia install old grub to the partition?
Why does it list or show 'legacy boot'?

I guess an option would be to:
1. Install Mageia grub to efi.
2. Then reinstall Garuda's grub only if Magiea's grub does not pick up the backup images. Though I guess Garuda grub may be specifically needed as it is btrfs.

Otherwise perhaps as you noted there is no solution here.
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 28th, '21, 07:35

Just an update today. Let's 'work' with 'normal' setup like my work unit. I am now on the machine that I just got back up finally having gotten the cooling fan for it.

I am NOT at this present time going to update it because it is actually my main machine. I was using others while it was down.

I just updated Mageia on the Lenovo AMD machine. I can't even boot it. It only had 2 kernels. I did the 'net install' so it's original kernel was 5.10.62.

This update put it up to current 5.15.4 kernel.

Mageia Grub is in EFI like my work machine. Dual boot is with Debian. No btrfs here. When I boot Mageia same story. Saying too many links. Only 2 kernels.

I can fortunately tell Grub to boot Debian and that's fine?

Mageia grub can't recognize itself or it's kernels rather?

Since the Mageia aspect of that is unbootable. I will be glad to supply whatever information needed to pin down this too many links and does not exist complaint.

Or should I just simply file this as a bug? I can now reduplicate it on several machines consistently.

As stated at this point with no fix or understanding of 'why' I have to leave this machine as is and NOT update.

I will again provide any info you ask if you think it can help pinpoint the cause. Apparently non of you are having this issue?
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 28th, '21, 07:46

Just in case it's important. I don't pretend to understand Grub 2. I find it quite confusing.

When I plan to do a dual boot. Such as the AMD machine. I put last the distro which I want to use the Grub from. Such as Mageia.

A lot of installers don't actually offer the option to install to partition.

So like my 'work' machine the AMD machine has the 'normal' setup I guess we can call it for Mageia Grub without any alterations.

Again since only my work machine is bootable. When at work tomorrow. I will be glad to try or provide any information that may help.

Thank you all for your suggestions here and help.
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby doktor5000 » Nov 28th, '21, 16:30

Sabungayam wrote:Just in case it's important. I don't pretend to understand Grub 2. I find it quite confusing.

I find the thread slightly confusing, as you jump from one box which seems to be dualboot to another, and it also seems that there are different issues at play here.
It would probably help if you describe the actual installations again and what the current scenario and issue is that you're trying to solve.

FWIW, if one box with Mageia without dualboot already has issues with grub entries booting, that is definitely not normal and also totally separate from the issue with your dualboot system.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 29th, '21, 13:24

I find the thread slightly confusing, as you jump from one box which seems to be dualboot to another, and it also seems that there are different issues at play here.


Sorry, I apologize for that. I apologize in advance as this is going to be a bit of a read to try to make it clear.

1. When I opened this thread. I had the problem on one computer/laptop which was dual boot. The lead system is Garuda.
I installed Mageia 2nd and I told it to install grub to partition of install. (Later in the thread it has been mentioned that Mageia Grub will not work unless in EFI. I checked the box not to touch EFI/MBR)

2. While we were working on the primary issue, updates are resulting in a message and inability to boot kernels.
The error message is as follows:
Code: Select all
[      0.978687]  pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid
/init: line 153: /user/lib/systemd-udevd: Too many levels of symbolic links
failed to send request to update environment: No such file or directory


I check the forum if I have time at work and my work PC has Mageia on it. It has Mageia Grub as the main and is just Mageia.

I decided to go ahead and update that machine. That work machine is was running 5.10.75 kernel.

After the update. I have gotten the same message I was getting with the first machine.



3. I think the thread got a little confusing because issues were trying to be solved concerning the dual boot with Garuda and Mageia.

But the problem is, it is happening where there is just Mageia and Mageia grub now. With help in this thread I achieved chainload of Mageia Grub in the first machine from Garuda grub. I got a Sparse error:

Code: Select all
error: sparse file not allowed.
Press any key to continue...


This Sparse error is in Mageia Grub and only in Mageia grub when chainloaded. I am unable to boot any kernel in that dual boot situation from chainload. Always getting the Sparse error.

I can still boot Mageia 5.10.62 from Garuda grub in first machine with dual boot. It was suggested that I delete some kernels and I did but nothing changed. I can only boot 5.10.62 kernel. (I updated it to 5.15.4 and deleted 5.10.75 and 5.10.78)

I think that it is thought the cause is the dual boot situation.

Since I have the problem on another machine not dual booted with no odd parameters, using Mageia Grub it seems this is a bug of some sort.

I was suggesting yesterday, Sunday that we can focus on my work machine to figure out what is going on. The exact same problem and there's no dual boot or other parameters to confuse matters. For example Garuda uses btrfs which has it's own issues in interaction with ext4 installs it seems.

4. Another comment I made Sunday referenced a 3rd & 4th machine. Well just a third. As far as the 4th is concerned I will not update it at this time. It is my primary machine. It needed a repair and I just got it back up. Updating it and winding up with this problem would be a bit of a mess for me at this time. So no updates until this is sorted.

The 3rd machine is an AMD hardware laptop. Everything else is Intel. I updated Mageia on the AMD laptop. I did net install. Kernel was 5.10.62 starting.

I updated and it was supposed to be kernel 5.15.4. After the update I can't boot 5.10.62 anymore and, it seems that 5.15.4 is not even in the grub menu?

That is a dual boot and I can still boot Debian fine and it has several kernels. Just can't boot Mageia even safe mode.

Sorry this is a long read but I hope it can clearly define what is the problem.

Every time I update Mageia currently I end up with this message duplicated across 3 different PCs and 2 with Mageia Grub in lead.

Code: Select all
[      0.978687]  pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid
/init: line 153: /user/lib/systemd-udevd: Too many levels of symbolic links
failed to send request to update environment: No such file or directory


With one unable to boot there's one we can work with which is my work machine. I had to drop back to 5.10.70 which will boot without the above message.

Garuda machine is still available for now, but I thought let's not mess with it because the btrfs issues are maybe moving off the focus of the primary issue. This too many links message and the directory not existing. Unable to boot kernels after updates recently.
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby sturmvogel » Nov 29th, '21, 16:52

Sabungayam wrote:Later in the thread it has been mentioned that Mageia Grub will not work unless in EFI.

No! You got that completely wrong. I meant, that "on this machine" you wont have any luck because i believe your Grub is sitting in the btrfs partition. And grub is not able to boot/write from/to btrfs. Thats why you would have to move it to another partition or into EFI. Thats why i also posted a link how Suse is circumventing this case. But i don't know how Garuda is doing it.

But lets wait if you get any response to your bugreport. It's still confusing that you mix your machines and jump from one to another...
https://bugs.mageia.org/show_bug.cgi?id=29708
sturmvogel
 
Posts: 678
Joined: Jul 30th, '12, 00:39

Re: GRUB can't find the updated Mageia kernels.

Postby doktor5000 » Nov 29th, '21, 17:03

FWIW, for the "Too many levels of symbolic links" error from init please create a separate thread, and describe again on which box this occurs, preferrably one which is not dualboot so this is reproducible.
From your description alone, I cannot reproduce this. Got a fresh mga8 installation which has seen nearly all of the various kernel updates since mga8 release, and not an issue since then. So that has to be something specific to your setup.

For the sparse file error, that always happens when grub is installed but the state file is not writable for grub, which usually happens when using btrfs as filesystem.
See https://bugs.mageia.org/show_bug.cgi?id=27117 - other distros have the same limitation, but usually carry patches to either supress that warning, disable SAVEDEFAULT or write to a different file on a partition/filesystem which is writable by grub.
But that by itself is not an error and also not related to the topic, you can simply press enter or disable SAVEDEFAULT as mentioned before if you don't want to see that message.
FWIW, grub can boot perfectly fine from btrfs (I'm using that since mga6) but you cannot use SAVEDEFAULT then, details are in the bugreport.

Apart from that, best pick one of the 4 different systems where you want to configure dualboot with Mageia grub, and stick with that one. Doesn't help jumping back and forth between different systems which might have different issues.
You should also add information, if both linux systems have been installed in UEFI or legacy mode. You create a lot of issues if you try to mix those.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Nov 30th, '21, 02:57

Thank you, I will create another thread specifically to address the symbolic links issue. I am on my work machine. This is a Mageia machine. EFI and normal setup. So no other issues to confused things. It's a very simple setup in fact. This is a really basic celeron machine.

Yes, I am not really clear about that issue with the btrfs. The reason being that as far as I understand, Mageia Grub was installed to it's partition. That partition is ext4. So why should it have any issues writing there?
IT is not a btrfs system. Only the install partition of Garuda is btrfs.

Well I will create the new topic focusing on that aspect with a machine here with Mageia main. The other laptop was Mageia just that it has Debian but there is no btrfs. I don't personally mess with btrfs unless it's the default of something I install such as Garuda which does not give a choice.
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby hviaene » Dec 15th, '21, 11:27

I was looking in the forum for any info/reference to the bug I logged on this - or very similar issue. It is bug 22675. In the mean time, the situation on this laptop got so out of hand, that I decided to follow the advice of my colleagues from QA, and installed reFind a few months ago. Up to now this holds OK, despite adding yet another system on this laptop. But as a precaution I keep the total number of kernels over the different instances as low as possible. I wonder if and when this grub issue would be solved.
hviaene
 
Posts: 143
Joined: Oct 11th, '13, 10:41

Re: GRUB can't find the updated Mageia kernels.

Postby Sabungayam » Dec 17th, '21, 08:20

Re-Find is not effected by this? Only GRUB then?

My one install uses Re-find... I didn't try it though as I was unsure what the issue was.

Unfortunately, unless there is a way that I'm unaware of, on one of my machines, custom EDID is needed because the screen does not give it.

SO I use Grub as Grub can then be told to use the custom edid so the screen behaves. IF not, it's very terrible. As it is, It is impossible for me to install this machine because it's that bad if I don't have another monitor to add via hdmi.

I think the view is that, 'Astril' should stop using that library or do something different with their use of it. Were you also using Astrill?
Sabungayam
 
Posts: 173
Joined: Aug 18th, '20, 06:52

Re: GRUB can't find the updated Mageia kernels.

Postby hviaene » Dec 17th, '21, 09:49

No, Astrii is unknown territory to me.
hviaene
 
Posts: 143
Joined: Oct 11th, '13, 10:41

Previous

Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron