No installed kernel boots except for the oldest one

Hello, all! This is my first time posting here, so please excuse me if I seem a little unprofessional.

I like this OS since I saw it on the Non-Woke Software List published by The Lunduke Journal. However, this issue has been going on for quite some time now, although it doesn’t hinder its usability. I tried everything described below, in addition to installing device-mapper (it was pre-installed with the latest version), to no avail.

Requirements:

I have searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the Release Notes and Errata

OpenMandriva Lx version:

ROME/Rolling (25.04)

Desktop environment (KDE, LXQT…):

KDE Plasma 6.3.4 (Wayland)

Description of the issue (screenshots if relevant):

When I install a newer kernel and attempt to boot from it, it gets stuck at the kernel loading screen. I then press the power button, and it almost instantly restarts.

Relevant information (hardware involved, software version, logs or output…):

Commands used:

sudo dnf distro-sync (I updated the system via dnfdragora, so this came up dry)
sudo dnf --refresh dsync (reinstalled some packages, but still did not fix the issue)
journalctl -b -1 > journal-no-boot.txt (shows log of last successful boot, but nothing about the failed one)

CPU: Intel Core i5 10400
GPU: AMD Radeon RX 6400
Mobo: GIGABYTE B560 DS3H AC-Y1

1 Like

Welcome! We are glad to see you and hope you will decide to make this your home.

I had a similar issue pop up when I first started using OM. What kernel are you able to boot into?

Edit: You can try removing the non-working kernels and then installing them again if you have not already done so. You can find older kernels here. Do not worry if they are called Cooker kernels all kernels are built in Cooker and should work OK in ROME or Rock. I have used Cooker kernels in Rock at times myself.

Check in /boot and be sure you have initrd-*.img file for the not working kernels.

This seems less likely but try dnf in --refresh task-plasma6-x11 and try booting into X11 instead of Wayland. You switch to X11 in lower left hand corner of sddm login screen.

It is between difficult to problem solve something with no evidence at all. If you can’t figure this out I suggest you talk to OM devs at OM Chat.

vmlinuz-6.12.1-desktop-1omv2490

I reinstalled the kernels. It still hangs up.

And this is my boot directory

Doesn’t look like they’re there…

1 Like

I wish I had that kernel saved. That was the latest LTS kernel. You can mark it as manually installed and it won’t get removed automatically.

sudo dnf mark install kernel-desktop-6.12.1-1

Since you already have it, you also have the headers and modules. :slightly_smiling_face:

Can you post the output of

rpm -qa|grep kernel
[xseagdc@DESKTOP-2006DS8 ~]$ rpm -qa|grep kernel
kernel-desktop-6.12.1-1.x86_64
lib64absl_kernel_timeout_internal-20250127.1-1.x86_64
kernel-headers-6.14.2-3.x86_64
kernel-firmware-extra-20250413-1.noarch
kernel-firmware-20250413-1.noarch
kernel-rc-desktop-6.15.0-0.rc2.3.x86_64
kernel-desktop-6.14.2-3.x86_64

You only have initrd .img for kernel-6.12.1-1 so that is the only one that can boot. You do want to sudo dnf mark install kernel-desktop-6.12.1-1 as @WilsonPhillips suggests to keep that kernel until we resolve this issue.

To build initrd .img’s for the other kernels you do:

ls -1 /lib/modules

Then you copy and paste the module directory from there for each kernel, one at the time and use dracut to build the initrd like this:

dracut -f /boot/initrd-$version.img $version

where $version is taken exactly from one of the folders listed in ls -1 /lib/modules. So for example:

sudo dracut -f /boot/initrd-6.14.2-desktop-3omv2590.img 6.14.2-desktop-3omv2590

Which if all goes well would look like this:

You have that same kernel so you should be able to just cp and paste that command for that kernel.

All the Creating group * stuff should be ignored, that is output that should not be there. This is confirmed with OM devs.

1 Like

Note for all users if you do your package management from cli you can see if a new kernel install actually builds an initrd .img in the grub2 scriptlet that will run after the install. It will be under this line Generating grub configuration file ... like this where I just installed 2 kernels on the system used in the example post above, you will see Generating grub configuration file ... run twice in this screen-shot:

So now I have 3 kernels available in my new Rock/6.0 system.

1 Like

Thanks for the reply. I will try the suggestions mentioned when I can and will edit this reply accordingly.

2 Likes

After resizing the partitions with another tool (turned out that my boot partition was too small to house the img files), wasting my life away trying to fix it not booting at all, chrooting into the main partition, and running all the necessary commands, everything works now! Thanks a million!

2 Likes

That would certainly do it. :astonished:

Glad you got it fixed up. Since you do have that 6.12.1, mark it as I showed. That one is a keeper.

Glad that you sorted. Just don’t do it again :wink: :

Instead do:
How to update OpenMandriva system

Thanks for the info! I will definitely look into it once my system needs upgrading again.

1 Like