#kernelstub / entries.d

5 messages · Page 1 of 1 (latest)

deep igloo
#

Hi
I upgraded LinuxMint from 21.3 to 22 and the upgrade went smoothly.
After more than a week of smooth running, I received a notification of a kernel update to 6.8.40 from 6.8.38.
I decided to go ahead with this upgrade using "sudo apt upgrade"
This command appeared to work initially. But it failed when it came to generating the initrd.img.

The reason for the failure was that there was no '/etc/kernelstub/entries.d' directory.
When I checked the backup of my system, I noticed that there had not been a 'entries.d' subsirectory in '/etc/kernelstub' either in Mint 21.3 before the upgrade or in Mint 22 after the upgrade. There was only a filed called 'system' in the '/etc/kernelstub' directory.
I proceeded to run "sudo kernelstub create" which created the entries.d subdirectory in the '/etc/kernelstub' directory & a file with long name which was basically pointing to the kernel image vmlinuz and the mount point of the root partition,

After doing this, all upgrades started working again like before & my system is running well again.

I'm just putting this here in case anyone else faces the same issue and also to raise the possibility that the upgrade process might be missing a step to create the 'entries.d' subdirectory & the step to run "kernelstub create" to move over to the new (Mint22) way of mounting the root partition.

I could not find any other reports of this issue which leads to me believe that perhaps there is something different about my system. But I can't see what it could be.

echo basin
#

Nicely done. I upgraded from 21.3 to 22 as well. I also updated recently but using the update manager, and haven't run into this issue.

According to my System info I'm on Kernel version 6.8.0-40 so presumeably I've gotten that same update, but I just checked in my etc folder and I don't have a Kernelstub directory either.

Maybe there's a difference running the Terminal command so you may be on to something, might be worth reporting as an issue. https://projects.linuxmint.com/reporting-an-issue.html

deep igloo
#

That is really odd. There is nothing special about my system. So I really don't understand how I ended up with this issue. You must at least have a '/etc/kernelstub/system' file? I'm trying to find any log with the exact error message so that I can post it. But I can't find it.

deep igloo
# echo basin Just a Kernel folder

Thanks. Is your system using initramfs at all? I understand that 'dracut' now handles initial mounting of the root partition so initramfs is not required. It would be interesting to see the output of "sudo apt upgrade" on your system when you have something to upgrade. Although my system appears to be running OK, I don't know if it really is.