[SOLVED]Kernel Update to 6.6.74 failed

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

[SOLVED]Kernel Update to 6.6.74 failed

Postby banjo » Feb 1st, '25, 18:19

I just installed an update to kernel 6.6.74, and it failed.

During the installation, the software maxed out one core of my computer for > 11 minutes. The CPU core was running 100% on that one core during that time. The installation did finally finish and told me to reboot for the kernel upgrade. The computer did reboot, however, it is still running kernel 6.6.65.

Here is my current inxi info.

Code: Select all
$ inxi -b
System:
  Host: linux8corem9 Kernel: 6.6.65-desktop-2.mga9 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 5.27.10 Distro: Mageia 9
Machine:
  Type: Desktop Mobo: Micro-Star model: MPG Z590 GAMING PLUS (MS-7D07) v: 2.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: A.10
    date: 04/09/2021
CPU:
  Info: 8-core 11th Gen Intel Core i7-11700K [MT MCP] speed (MHz): avg: 1697
    min/max: 800/4900:5000
Graphics:
  Device-1: NVIDIA GA106 [Geforce RTX 3050] driver: nvidia v: 550.144.03
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: nvidia,v4l gpu: nvidia,nvidia-nvswitch resolution: 1: 1920x1080~60Hz
    2: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 vendor: nvidia v: 550.144.03 renderer: NVIDIA
    GeForce RTX 3050/PCIe/SSE2
Network:
  Device-1: Intel Ethernet I225-V driver: igc
Drives:
  Local Storage: total: 1.82 TiB used: 259.83 GiB (13.9%)
Info:
  Memory: total: 32 GiB available: 31.23 GiB used: 4.51 GiB (14.4%)
  Processes: 443 Uptime: 5m Shell: Bash inxi: 3.3.36


According to rpm, kernel 6.6.74 is installed.

Code: Select all
$ rpm -aq | grep kernel
remove-old-kernels-0.99.21.7-1.mga9
openrazer-kernel-modules-dkms-3.8.0-1.1.mga9
kernel-firmware-nonfree-20240909-1.mga9.nonfree
kernel-firmware-20240909-1.mga9
kernel-desktop-6.6.58-2.mga9
kernel-desktop-devel-6.6.58-2.mga9
kernel-desktop-6.6.61-1.mga9
kernel-desktop-devel-6.6.61-1.mga9
kernel-desktop-6.6.65-2.mga9
kernel-desktop-devel-6.6.65-2.mga9
kernel-desktop-6.6.74-1.mga9
kernel-desktop-latest-6.6.74-1.mga9
kernel-userspace-headers-6.6.74-1.mga9
kernel-desktop-devel-6.6.74-1.mga9


Here is the bash output from the installation.

Code: Select all
[brian@linux8corem9 data]$ su
Password:
root@linux8corem9:~# urpmi --auto-update
medium "Core Release" is up-to-date
medium "Core Updates" is up-to-date
medium "Nonfree Release" is up-to-date
medium "Nonfree Updates" is up-to-date
medium "Tainted Release" is up-to-date
medium "Tainted Updates" is up-to-date
medium "google-chrome" is up-to-date
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch   
(medium "Core Updates")
  cpupower                       6.6.74       1.mga9        x86_64 
  kernel-desktop                 6.6.74       1.mga9        x86_64 
  kernel-desktop-devel           6.6.74       1.mga9        x86_64 
  kernel-desktop-latest          6.6.74       1.mga9        x86_64 
  kernel-userspace-headers       6.6.74       1.mga9        x86_64 
  lib64bpf1                      6.6.74       1.mga9        x86_64 
(medium "Nonfree Updates")
  dkms-nvidia-current            550.144.03   1.mga9.nonfr> x86_64 
  nvidia-current-utils           550.144.03   1.mga9.nonfr> x86_64 
  x11-driver-video-nvidia-curre> 550.144.03   1.mga9.nonfr> x86_64 
155MB of additional disk space will be used.
368MB of packages will be retrieved.
Proceed with the installation of the 9 packages? (Y/n) y


    $MIRRORLIST: media/core/updates/cpupower-6.6.74-1.mga9.x86_64.rpm
    $MIRRORLIST: media/core/updates/kernel-desktop-devel-6.6.74-1.mga9.x86_64.rpm                                                             
    $MIRRORLIST: media/core/updates/kernel-desktop-latest-6.6.74-1.mga9.x86_64.rpm                                                             
    $MIRRORLIST: media/core/updates/kernel-userspace-headers-6.6.74-1.mga9.x86_64.rpm                                                         
    $MIRRORLIST: media/core/updates/lib64bpf1-6.6.74-1.mga9.x86_64.rpm                                                                         
    $MIRRORLIST: media/core/updates/kernel-desktop-6.6.74-1.mga9.x86_64.rpm                                                                   
    $MIRRORLIST: media/nonfree/updates/dkms-nvidia-current-550.144.03-1.mga9.nonfree.x86_64.rpm                                               
    $MIRRORLIST: media/nonfree/updates/x11-driver-video-nvidia-current-550.144.03-1.mga9.nonfree.x86_64.rpm                                   
    $MIRRORLIST: media/nonfree/updates/nvidia-current-utils-550.144.03-1.mga9.nonfree.x86_64.rpm                                               
installing kernel-desktop-6.6.74-1.mga9.x86_64.rpm kernel-desktop-devel-6.6.74-1.mga9.x86_64.rpm dkms-nvidia-current-550.144.03-1.mga9.nonfree.x86_64.rpm x11-driver-video-nvidia-current-550.144.03-1.mga9.nonfree.x86_64.rpm nvidia-current-utils-550.144.03-1.mga9.nonfree.x86_64.rpm lib64bpf1-6.6.74-1.mga9.x86_64.rpm kernel-userspace-headers-6.6.74-1.mga9.x86_64.rpm cpupower-6.6.74-1.mga9.x86_64.rpm kernel-desktop-latest-6.6.74-1.mga9.x86_64.rpm from /var/cache/urpmi/rpms
Preparing...                     #############################################################################################################
      1/9: cpupower              #############################################################################################################
      2/9: kernel-desktop        #############################################################################################################
      3/9: nvidia-current-utils  #############################################################################################################
      4/9: dkms-nvidia-current   #############################################################################################################

Creating symlink /var/lib/dkms/nvidia-current/550.144.03-1.mga9.nonfree/source ->
                 /usr/src/nvidia-current-550.144.03-1.mga9.nonfree

DKMS: add Completed.

Preparing kernel 6.6.65-desktop-2.mga9 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare....

Building module:
cleaning build area....
'make' -j16 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.6.65-desktop-2.mga9/build modules..........
cleaning build area....
cleaning kernel tree (make mrproper)....

DKMS: build Completed.

nvidia-current.ko.xz:
 - Installation
   - Installing to /lib/modules/6.6.65-desktop-2.mga9/dkms/drivers/char/drm/

nvidia-modeset.ko.xz:
 - Installation
   - Installing to /lib/modules/6.6.65-desktop-2.mga9/dkms/drivers/char/drm/

nvidia-drm.ko.xz:
 - Installation
   - Installing to /lib/modules/6.6.65-desktop-2.mga9/dkms/drivers/char/drm/

nvidia-uvm.ko.xz:
 - Installation
   - Installing to /lib/modules/6.6.65-desktop-2.mga9/dkms/drivers/char/drm/

nvidia-peermem.ko.xz:
 - Installation
   - Installing to /lib/modules/6.6.65-desktop-2.mga9/dkms/drivers/char/drm/

depmod.....

DKMS: install Completed.
      5/9: kernel-desktop-latest #############################################################################################################
      6/9: kernel-userspace-headers
                                 #############################################################################################################
      7/9: lib64bpf1             #############################################################################################################
      8/9: kernel-desktop-devel  #############################################################################################################
      9/9: x11-driver-video-nvidia-current
                                 #############################################################################################################
      1/7: removing x11-driver-video-nvidia-current-550.142-3.mga9.nonfree.x86_64
                                 #############################################################################################################

-------- Uninstall Beginning --------
Module:  nvidia-current
Version: 550.142-3.mga9.nonfree
Kernel:  6.6.65-desktop-2.mga9 (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod.....

DKMS: uninstall Completed.

------------------------------
Deleting module version: 550.142-3.mga9.nonfree
completely from the DKMS tree.
------------------------------
Done.
      2/7: removing dkms-nvidia-current-550.142-3.mga9.nonfree.x86_64
                                 #############################################################################################################
dracut: dracut module 'systemd-initrd' depends on 'systemd', which can't be installed
dracut: dracut module 'ifcfg' depends on 'network', which can't be installed
dracut: dracut module 'systemd-initrd' depends on 'systemd', which can't be installed
dracut: dracut module 'dracut-systemd' depends on 'systemd-initrd', which can't be installed
dracut: dracut module 'ifcfg' depends on 'network', which can't be installed
      3/7: removing kernel-desktop-latest-6.6.65-2.mga9.x86_64
                                 #############################################################################################################
      4/7: removing kernel-userspace-headers-6.6.65-2.mga9.x86_64
                                 #############################################################################################################
      5/7: removing nvidia-current-utils-550.142-3.mga9.nonfree.x86_64
                                 #############################################################################################################
      6/7: removing cpupower-6.6.65-2.mga9.x86_64
                                 #############################################################################################################
      7/7: removing lib64bpf1-6.6.65-2.mga9.x86_64
                                 #############################################################################################################

nvidia-current (550.144.03-1.mga9.nonfree): Installing module.
......................
.......
openrazer-driver (3.8.0): Installing module.
.........
.......
remove-boot-splash: Format of /boot/initrd-6.6.74-desktop-1.mga9.img not recognized
grub2-mkconfig failed:  at /usr/lib/libDrakX/bootloader.pm line 2146.
dracut: dracut module 'systemd-initrd' depends on 'systemd', which can't be installed
dracut: dracut module 'ifcfg' depends on 'network', which can't be installed
dracut: dracut module 'systemd-initrd' depends on 'systemd', which can't be installed
dracut: dracut module 'dracut-systemd' depends on 'systemd-initrd', which can't be installed
dracut: dracut module 'ifcfg' depends on 'network', which can't be installed
You should restart your computer for kernel-desktop
root@linux8corem9:~#



You can see in the bash output that the installation flagged a failure running grub2-mkconfig

Code: Select all
grub2-mkconfig failed:  at /usr/lib/libDrakX/bootloader.pm line 2146.


After the installation finished, Plasma was completely locked up. Some applications (gvim, Spectacle) were still running, but the GUI was frozen. I had to shut down with the power button.

I have attached the boot log from the session in which I executed the update. You can see that there is a traceback from grub2-mkconfig at the end of the log. It looks like grub2-mkconfig got blocked and was timed out.

Is this a bug in the release, or is there something unique in my system? I have not done much configuration on this system. It is a normal install and updates.

This is not a crisis because the computer is working under the older kernel, but any help would be appreciated in understanding what is going on.

Banjo
(_)=='=~
Attachments
Bootlog20250201.txt
Session in which the update was executed
(259.53 KiB) Downloaded 100 times
Last edited by banjo on Feb 4th, '25, 21:28, edited 1 time in total.
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 494
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Kernel Update to 6.6.74 failed

Postby Germ » Feb 2nd, '25, 01:03

Update to 6.6.74 went well for me. Booted right up.
Code: Select all
[germ@localhost ~]$ inxi -b
System:
  Host: localhost Kernel: 6.6.74-desktop-1.mga9 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 5.27.10 Distro: Mageia 9
Machine:
  Type: Laptop System: Dell product: Latitude E6530 v: 01
    serial: <superuser required>
  Mobo: Dell model: 07Y85M v: A01 serial: <superuser required> UEFI: Dell
    v: A22 date: 11/30/2018
Battery:
  ID-1: BAT0 charge: 43.2 Wh (100.0%) condition: 43.2/48.8 Wh (88.4%)
CPU:
  Info: quad core Intel Core i7-3720QM [MT MCP] speed (MHz): avg: 3600
    min/max: 1200/3600
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel
  Device-2: NVIDIA GF108GLM [NVS 5200M] driver: nouveau v: kernel
  Device-3: Microdia Dell Integrated HD Webcam driver: uvcvideo type: USB
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: modesetting,nouveau,v4l dri: crocus,nouveau gpu: i915
    resolution: 1600x900~60Hz
  API: OpenGL v: 4.2 vendor: intel mesa v: 24.2.8 renderer: Mesa Intel HD
    Graphics 4000 (IVB GT2)
Network:
  Device-1: Intel 82579LM Gigabit Network driver: e1000e
  Device-2: Intel Centrino Ultimate-N 6300 driver: iwlwifi
Drives:
  Local Storage: total: 476.94 GiB used: 29.42 GiB (6.2%)
Info:
  Memory: total: 16 GiB available: 15.51 GiB used: 2.03 GiB (13.1%)
  Processes: 262 Uptime: 1m Shell: Bash inxi: 3.3.36
[germ@localhost ~]$
Starting in 1999: Mandrake > Mandriva > Mageia
Linux User #274693
User avatar
Germ
 
Posts: 766
Joined: Mar 30th, '11, 13:16
Location: Chelsea, Oklahoma USA

Re: Kernel Update to 6.6.74 failed

Postby doktor5000 » Feb 2nd, '25, 16:49

banjo wrote:
Code: Select all
remove-boot-splash: Format of /boot/initrd-6.6.74-desktop-1.mga9.img not recognized
grub2-mkconfig failed:  at /usr/lib/libDrakX/bootloader.pm line 2146.


You can see in the bash output that the installation flagged a failure running grub2-mkconfig


I have attached the boot log from the session in which I executed the update. You can see that there is a traceback from grub2-mkconfig at the end of the log. It looks like grub2-mkconfig got blocked and was timed out.


Seems to be a bug with your installation, otherwise there were quite a lot of similar reports if it would be a common issue.

Feb 01 09:11:54 linux8corem9 [RPM][126980]: erase dkms-nvidia-current-550.142-3.mga9.nonfree.x86_64: success
Feb 01 09:11:54 linux8corem9 [RPM][126980]: erase kernel-desktop-latest-6.6.65-2.mga9.x86_64: success
Feb 01 09:11:54 linux8corem9 [RPM][126980]: erase kernel-userspace-headers-6.6.65-2.mga9.x86_64: success
Feb 01 09:11:54 linux8corem9 [RPM][126980]: erase nvidia-current-utils-550.142-3.mga9.nonfree.x86_64: success
Feb 01 09:11:54 linux8corem9 [RPM][126980]: erase cpupower-6.6.65-2.mga9.x86_64: success
Feb 01 09:11:54 linux8corem9 [RPM][126980]: erase lib64bpf1-6.6.65-2.mga9.x86_64: success
Feb 01 09:13:21 linux8corem9 bootloader-config[182575]: running: /sbin/modprobe dm_zero
Feb 01 09:13:21 linux8corem9 bootloader-config[182575]: running: dmraid -s -c -c
[...]
Feb 01 09:13:21 linux8corem9 bootloader-config[182575]: is_geometry_valid_for_the_partition_table failed for (sdb1, 2048): 4,4,0 vs 0,32,32 with geometry 121601/255/63
Feb 01 09:13:21 linux8corem9 bootloader-config[182575]: is_geometry_valid_for_the_partition_table failed for (sdb1, 819202047): 1023,254,1 vs 1023,247,6 with geometry 121601/255/63
Feb 01 09:13:21 linux8corem9 bootloader-config[182575]: sdb: no valid geometry guessed from partition table
Feb 01 09:13:21 linux8corem9 bootloader-config[182575]: sdb: argh! no geometry exists for this partition table
[...]

The long duration was during one of the rpm post scripts, probably when compiling the binary module from dkms-nvidia-current.
There was also an issue reading the partition layout for sdb which you should maybe check.


Code: Select all
Feb 01 09:13:36 linux8corem9 bootloader-config[182575]: running: grub2-mkconfig -o /boot/grub2/grub.cfg
Feb 01 09:13:41 linux8corem9 kernel: sched: RT throttling activated
Feb 01 09:14:40 linux8corem9 kernel: rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
Feb 01 09:14:40 linux8corem9 kernel: rcu:         Tasks blocked on level-0 rcu_node (CPUs 0-15): P188512
Feb 01 09:14:40 linux8corem9 kernel: rcu:         (detected by 11, t=30002 jiffies, g=194861, q=87678 ncpus=16)
Feb 01 09:14:40 linux8corem9 kernel: task:10_linux        state:R  running task     stack:0     pid:188512 ppid:188508 flags:0x00004002
Feb 01 09:14:40 linux8corem9 kernel: Call Trace:
Feb 01 09:14:40 linux8corem9 kernel:  <TASK>
Feb 01 09:14:40 linux8corem9 kernel:  ? __schedule+0x3d0/0x13f0

The traceback here is from the kernel, and points more to a hardware issue or some issue with the CPU which might be running slightly overclocked or not really stable,
as there doesn't seem to be any other driver or hardware involved in the stack trace. Could also be something as simple as a missing BIOS update to improve CPU compatibility.

Question is what happens when you run the following as root manually?
Code: Select all
grub2-mkconfig -o /boot/grub2/grub.cfg


Problem is, if you cannot clearly reproduce it, there's probably no chance to get this fixed in any way.
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: 18252
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Kernel Update to 6.6.74 failed

Postby banjo » Feb 2nd, '25, 16:54

Thanks for the feedback.

I just installed the kernel update on my other Mag9 computer, and it worked perfectly.

Code: Select all
System:
  Host: linux6core Kernel: 6.6.74-desktop-1.mga9 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 5.27.10 Distro: Mageia 9
Machine:
  Type: Desktop Mobo: Micro-Star model: MPG Z490 GAMING EDGE WIFI (MS-7C79)
    v: 1.0 serial: <superuser required> UEFI: American Megatrends v: 1.C0
    date: 06/10/2022
CPU:
  Info: 6-core 11th Gen Intel Core i5-11400 [MT MCP] speed (MHz): avg: 800
    min/max: 800/4400
Graphics:
  Device-1: Intel RocketLake-S GT1 [UHD Graphics 730] driver: i915 v: kernel
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: modesetting,v4l dri: iris gpu: i915 resolution: 1: 1920x1080~60Hz
    2: 1920x1080~60Hz
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.2.8 renderer: Mesa Intel
    Graphics (RKL GT1)
Network:
  Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi
  Device-2: Realtek RTL8125 2.5GbE driver: r8169
Drives:
  Local Storage: total: 954.81 GiB used: 60.7 GiB (6.4%)
Info:
  Memory: total: 32 GiB available: 31.18 GiB used: 2.25 GiB (7.2%)
  Processes: 322 Uptime: 1m Shell: Bash inxi: 3.3.36



I don't know what went wrong on the other computer.

Is grub2-mkconfig using asynchronous processes and got deadlocked? Deadlocks are so difficult to trouble shoot!

Not sure how grub2-mkconfig decides what to put into /boot/grub/grub.cfg re. kernel version.

I need to figure out how to get my other computer to boot the new kernel.
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 494
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Kernel Update to 6.6.74 failed

Postby banjo » Feb 2nd, '25, 20:30

Doktor5000,
Thanks for the suggestions.

I have not deliberately overclocked anything. I don't mess with that stuff.

This is the first time I have had any issues with a kernel install, and I have done several since the installation (March 2024). That indicates to me that it isn't a BIOS mismatch or it would have shown up earlier.

As I said in my previous post, the upgrade worked fine on my other computer, so it is something amiss with this system.

This is a busy computer, so I will have to decide whether I want to risk running grub2-mkconfig or not. I might interrupt grub on boot and see if I can select the new kernel and run it. RPM indicates that the new kernel is installed. I think grub is set to remember the last kernel and run that one by default. I will have to check that.
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 494
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Kernel Update to 6.6.74 failed

Postby doktor5000 » Feb 3rd, '25, 02:19

banjo wrote:Not sure how grub2-mkconfig decides what to put into /boot/grub/grub.cfg re. kernel version.

I need to figure out how to get my other computer to boot the new kernel.


It might help if you would post what your current grub.cfg looks like, what you have in /boot and what your actual issue booting the new kernel is because your description is quite vague.
Is there simply no entry for the new kernel, does the entry not boot - if so at what stage does it fail with what error ?
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: 18252
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Kernel Update to 6.6.74 failed

Postby banjo » Feb 3rd, '25, 06:33

grub.cfg explicitly calls out /boot/vmlinuz-6.6.65-desktop-2.mga9 as the default kernel. I think it just got left there when grub2-mkconfig failed during the upgrade. grub.cfg was not rewritten.

Code: Select all
#
# 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,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0bac3c80-d4ed-44f1-aae5-8de4257870a8
else
  search --no-floppy --fs-uuid --set=root 0bac3c80-d4ed-44f1-aae5-8de4257870a8
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
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=10
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-0bac3c80-d4ed-44f1-aae5-8de4257870a8' {
   savedefault
   load_video
   set gfxpayload=auto
   insmod gzio
   insmod part_gpt
   insmod ext2
   set root='hd0,gpt2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0bac3c80-d4ed-44f1-aae5-8de4257870a8
   else
     search --no-floppy --fs-uuid --set=root 0bac3c80-d4ed-44f1-aae5-8de4257870a8
   fi
   echo   'Loading Linux 6.6.65-desktop-2.mga9 ...'
   linux   /boot/vmlinuz-6.6.65-desktop-2.mga9 root=UUID=0bac3c80-d4ed-44f1-aae5-8de4257870a8 ro  nokmsboot splash quiet noiswmd resume=UUID=0b32259c-65a8-4321-8b5e-bf824b7808fb audit=0 vga=788
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd-6.6.65-desktop-2.mga9.img
}
submenu 'Advanced options for Mageia' $menuentry_id_option 'gnulinux-advanced-0bac3c80-d4ed-44f1-aae5-8de4257870a8' {
   menuentry 'Mageia (6.6.65-desktop-2.mga9) 9' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.6.65-desktop-2.mga9-advanced-0bac3c80-d4ed-44f1-aae5-8de4257870a8' {
   savedefault
      load_video
      set gfxpayload=auto
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0bac3c80-d4ed-44f1-aae5-8de4257870a8
      else
        search --no-floppy --fs-uuid --set=root 0bac3c80-d4ed-44f1-aae5-8de4257870a8
      fi
      echo   'Loading Linux 6.6.65-desktop-2.mga9 ...'
      linux   /boot/vmlinuz-6.6.65-desktop-2.mga9 root=UUID=0bac3c80-d4ed-44f1-aae5-8de4257870a8 ro  nokmsboot splash quiet noiswmd resume=UUID=0b32259c-65a8-4321-8b5e-bf824b7808fb audit=0 vga=788
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd-6.6.65-desktop-2.mga9.img
   }
   menuentry 'Mageia (6.6.65-desktop-2.mga9) 9 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.6.65-desktop-2.mga9-recovery-0bac3c80-d4ed-44f1-aae5-8de4257870a8' {
      load_video
      set gfxpayload=auto
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0bac3c80-d4ed-44f1-aae5-8de4257870a8
      else
        search --no-floppy --fs-uuid --set=root 0bac3c80-d4ed-44f1-aae5-8de4257870a8
      fi
      echo   'Loading Linux 6.6.65-desktop-2.mga9 ...'
      linux   /boot/vmlinuz-6.6.65-desktop-2.mga9 root=UUID=0bac3c80-d4ed-44f1-aae5-8de4257870a8 ro failsafe
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd-6.6.65-desktop-2.mga9.img
   }
   menuentry 'Mageia (6.6.61-desktop-1.mga9) 9' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.6.61-desktop-1.mga9-advanced-0bac3c80-d4ed-44f1-aae5-8de4257870a8' {
   savedefault
      load_video
      set gfxpayload=auto
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0bac3c80-d4ed-44f1-aae5-8de4257870a8
      else
        search --no-floppy --fs-uuid --set=root 0bac3c80-d4ed-44f1-aae5-8de4257870a8
      fi
      echo   'Loading Linux 6.6.61-desktop-1.mga9 ...'
      linux   /boot/vmlinuz-6.6.61-desktop-1.mga9 root=UUID=0bac3c80-d4ed-44f1-aae5-8de4257870a8 ro  nokmsboot splash quiet noiswmd resume=UUID=0b32259c-65a8-4321-8b5e-bf824b7808fb audit=0 vga=788
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd-6.6.61-desktop-1.mga9.img
   }
   menuentry 'Mageia (6.6.61-desktop-1.mga9) 9 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.6.61-desktop-1.mga9-recovery-0bac3c80-d4ed-44f1-aae5-8de4257870a8' {
      load_video
      set gfxpayload=auto
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0bac3c80-d4ed-44f1-aae5-8de4257870a8
      else
        search --no-floppy --fs-uuid --set=root 0bac3c80-d4ed-44f1-aae5-8de4257870a8
      fi
      echo   'Loading Linux 6.6.61-desktop-1.mga9 ...'
      linux   /boot/vmlinuz-6.6.61-desktop-1.mga9 root=UUID=0bac3c80-d4ed-44f1-aae5-8de4257870a8 ro failsafe
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd-6.6.61-desktop-1.mga9.img
   }
   menuentry 'Mageia (6.6.58-desktop-2.mga9) 9' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.6.58-desktop-2.mga9-advanced-0bac3c80-d4ed-44f1-aae5-8de4257870a8' {
   savedefault
      load_video
      set gfxpayload=auto
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0bac3c80-d4ed-44f1-aae5-8de4257870a8
      else
        search --no-floppy --fs-uuid --set=root 0bac3c80-d4ed-44f1-aae5-8de4257870a8
      fi
      echo   'Loading Linux 6.6.58-desktop-2.mga9 ...'
      linux   /boot/vmlinuz-6.6.58-desktop-2.mga9 root=UUID=0bac3c80-d4ed-44f1-aae5-8de4257870a8 ro  nokmsboot splash quiet noiswmd resume=UUID=0b32259c-65a8-4321-8b5e-bf824b7808fb audit=0 vga=788
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd-6.6.58-desktop-2.mga9.img
   }
   menuentry 'Mageia (6.6.58-desktop-2.mga9) 9 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.6.58-desktop-2.mga9-recovery-0bac3c80-d4ed-44f1-aae5-8de4257870a8' {
      load_video
      set gfxpayload=auto
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0bac3c80-d4ed-44f1-aae5-8de4257870a8
      else
        search --no-floppy --fs-uuid --set=root 0bac3c80-d4ed-44f1-aae5-8de4257870a8
      fi
      echo   'Loading Linux 6.6.58-desktop-2.mga9 ...'
      linux   /boot/vmlinuz-6.6.58-desktop-2.mga9 root=UUID=0bac3c80-d4ed-44f1-aae5-8de4257870a8 ro failsafe
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd-6.6.58-desktop-2.mga9.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 ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
   menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
      fwsetup
   }
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### 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 ###



The new kernel is definitely in /boot, but is is not being used by grub. Here is what is in /boot

Code: Select all
config-6.6.58-desktop-2.mga9
config-6.6.61-desktop-1.mga9
config-6.6.65-desktop-2.mga9
config-6.6.74-desktop-1.mga9
dracut
efi
EFI
grub2
initrd-6.6.58-desktop-2.mga9.img
initrd-6.6.61-desktop-1.mga9.img
initrd-6.6.65-desktop-2.mga9.img
initrd-6.6.74-desktop-1.mga9.img
initrd-desktop.img
initrd.img
symvers-6.6.58-desktop-2.mga9.xz
symvers-6.6.61-desktop-1.mga9.xz
symvers-6.6.65-desktop-2.mga9.xz
symvers-6.6.74-desktop-1.mga9.xz
System.map-6.6.58-desktop-2.mga9
System.map-6.6.61-desktop-1.mga9
System.map-6.6.65-desktop-2.mga9
System.map-6.6.74-desktop-1.mga9
vmlinuz
vmlinuz-6.6.58-desktop-2.mga9
vmlinuz-6.6.61-desktop-1.mga9
vmlinuz-6.6.65-desktop-2.mga9
vmlinuz-6.6.74-desktop-1.mga9
vmlinuz-desktop



The kernel 6.6.74 has not failed to boot, it is just not being used. This is a very busy computer, and I have not found a time to take it down and try to boot the new kernel. I think the best option will be to interrupt grub and see if 6.6.74 shows up in the list, and if so run it from there. I don't know how it will play with things like the Nvidia drivers and all that, so I will need a bit of time to try it out.

I will try to get some time to run it and see what happens.
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 494
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Kernel Update to 6.6.74 failed

Postby morgano » Feb 3rd, '25, 07:24

banjo wrote:The kernel 6.6.74 has not failed to boot, it is just not being used. I think the best option will be to interrupt grub and see if 6.6.74 shows up in the list, and if so run it from there.


When grub shows up, press arrow keys down/up to select middle alternative, enter, and you get a list with all installed kernels. For each also an alternative to only boot to command line - if the other alternative(s) do not boot to a usable state you can select that for maintenance work.

* Note that the list may contain more kernels than it can display and it do not indicate it is cut off - scroll down to bottom and continue and it will scroll. *

Are you able to select 6.6.74 there?

I don't know how it will play with things like the Nvidia drivers and all that, so I will need a bit of time to try it out.
The command
Code: Select all
$ dkms status

Lists what kernel modules are built. Then Nvidia kernel module should be built for the the running kernel when you install nvidia driver, and for a new kernel when it is installed. If booting a kernel which do not have it installed, dkms will build that module during boot (this may take a couple minutes, so wait...) Building the modules in all cases need necessary packages to be installed, such as the corresponding -devel packages for the kernels.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1596
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Kernel Update to 6.6.74 failed

Postby doktor5000 » Feb 3rd, '25, 17:35

doktor5000 wrote:Question is what happens when you run the following as root manually?
Code: Select all
grub2-mkconfig -o /boot/grub2/grub.cfg

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: 18252
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Kernel Update to 6.6.74 failed

Postby banjo » Feb 4th, '25, 21:16

Sorry for the long delays. Busy computer.

I rebooted and stopped grub with the arrow keys to select a kernel to boot. The 6.6.74 kernel did not show up in the list. So I booted using the 6.6.65 kernel and ran grub2-mkcofig. It appeared to run normally.

Code: Select all
root@linux8corem9:~# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.6.74-desktop-1.mga9
Found initrd image: /boot/initrd-6.6.74-desktop-1.mga9.img
Found linux image: /boot/vmlinuz-6.6.65-desktop-2.mga9
Found initrd image: /boot/initrd-6.6.65-desktop-2.mga9.img
Found linux image: /boot/vmlinuz-6.6.61-desktop-1.mga9
Found initrd image: /boot/initrd-6.6.61-desktop-1.mga9.img
Found linux image: /boot/vmlinuz-6.6.58-desktop-2.mga9
Found initrd image: /boot/initrd-6.6.58-desktop-2.mga9.img
Adding boot menu entry for UEFI Firmware Settings ...
done
root@linux8corem9:~#


I rebooted again and stopped grub, and 6.6.74 was in the list this time, so I booted the new kernel, and it appears to be running OK.

Inxi output:

Code: Select all
[brian@linux8corem9 data]$ inxi -b
System:
  Host: linux8corem9 Kernel: 6.6.74-desktop-1.mga9 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 5.27.10 Distro: Mageia 9
Machine:
  Type: Desktop Mobo: Micro-Star model: MPG Z590 GAMING PLUS (MS-7D07) v: 2.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: A.10
    date: 04/09/2021
CPU:
  Info: 8-core 11th Gen Intel Core i7-11700K [MT MCP] speed (MHz): avg: 800
    min/max: 800/4900:5000
Graphics:
  Device-1: NVIDIA GA106 [Geforce RTX 3050] driver: nvidia v: 550.144.03
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: nvidia,v4l gpu: nvidia,nvidia-nvswitch resolution: 1: 1920x1080~60Hz
    2: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 vendor: nvidia v: 550.144.03 renderer: NVIDIA
    GeForce RTX 3050/PCIe/SSE2
Network:
  Device-1: Intel Ethernet I225-V driver: igc
Drives:
  Local Storage: total: 1.82 TiB used: 260.04 GiB (14.0%)
Info:
  Memory: total: 32 GiB available: 31.23 GiB used: 2.41 GiB (7.7%)
  Processes: 390 Uptime: 2m Shell: Bash inxi: 3.3.36
[brian@linux8corem9 data]$


I think the kernel issue is fixed, but I now have a Plasma problem where I am not able to configure my two monitors any more. It simply mirrors the same desktop on both monitors. But that problem showed up after installing the libxml2 update, and I don't think it is related to the kernel issue. So I will start a new thread asking how to get my desktop back.

Code: Select all
root@linux8corem9:~# urpmi --auto-update
medium "Core Release" is up-to-date
medium "Core Updates" is up-to-date
medium "Nonfree Release" is up-to-date
medium "Nonfree Updates" is up-to-date
medium "Tainted Release" is up-to-date
medium "Tainted Updates" is up-to-date
medium "google-chrome" is up-to-date
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch   
(medium "Core Updates")
  lib64xml2-devel                2.10.4       1.5.mga9      x86_64 
  lib64xml2_2                    2.10.4       1.5.mga9      x86_64 
  libxml2-utils                  2.10.4       1.5.mga9      x86_64 
16B of disk space will be freed.
1MB of packages will be retrieved.
Proceed with the installation of the 3 packages? (Y/n) y


I will reboot a couple more times and then mark this solved if there are no more issues with it.
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 494
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Kernel Update to 6.6.74 failed

Postby banjo » Feb 4th, '25, 21:27

I have rebooted using the default kernel and everything appears to be working OK. I don't know what went wrong during the update, but I will not spend any more time trying to chase it down since it is fixed.

Also, I figured out my desktop problem so there is no need for any new thread. Somehow the two monitors got positioned directly over each other. I only could see one in the Display Configuration screen, and both of them were getting the same output. Strange. I just opened the system settings Display Configuration and dragged them around to configure and all is well.

Thanks for the great support.

Banjo
(_)=='=~
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 494
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: [SOLVED]Kernel Update to 6.6.74 failed

Postby Germ » Feb 4th, '25, 23:10

Glad you got it sorted out. :mrgreen:
Starting in 1999: Mandrake > Mandriva > Mageia
Linux User #274693
User avatar
Germ
 
Posts: 766
Joined: Mar 30th, '11, 13:16
Location: Chelsea, Oklahoma USA


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest