Score:0

system won't boot into the kernel specfied in /boot

gb flag

On a machine with uEFI boot and ubuntu 21.04, I have a few kernels installed. I noticed that the system doesn't boot automatically into the kernel defined by the links in /boot (initrd.img -> initrd.img-5.11.0-25-generic vmlinuz -> vmlinuz-5.11.0-25-generic) :

$ ll /boot/
total 222012
drwxr-xr-x  5 root root     4096 Sep 20 11:47 ./
drwxr-xr-x 21 root root     4096 Sep 19 15:45 ../
-rw-r--r--  1 root root   251649 Aug 18 11:23 config-5.10.0-1045-oem
-rw-r--r--  1 root root   253156 Jul  9 19:42 config-5.11.0-25-generic
-rw-r--r--  1 root root   253064 Aug 26 20:11 config-5.11.0-34-generic
drwxr-xr-x  3 root root     4096 Jan  1  1970 efi/
drwxr-xr-x  4 root root     4096 Sep 20 11:47 grub/
drwxr-xr-x  5 root root     4096 Sep 19 20:51 grub.bak/
lrwxrwxrwx  1 root root       28 Sep 20 11:47 initrd.img -> initrd.img-5.11.0-25-generic
-rw-r--r--  1 root root 60355963 Sep 20 11:34 initrd.img-5.10.0-1045-oem
-rw-r--r--  1 root root 39082577 Sep 20 11:43 initrd.img-5.11.0-25-generic
-rw-r--r--  1 root root 66756367 Sep 20 11:43 initrd.img-5.11.0-34-generic
lrwxrwxrwx  1 root root       28 Sep 20 11:47 initrd.img.old -> initrd.img-5.11.0-34-generic
-rw-r--r--  1 root root   182704 Aug 18  2020 memtest86+.bin
-rw-r--r--  1 root root   184380 Aug 18  2020 memtest86+.elf
-rw-r--r--  1 root root   184884 Aug 18  2020 memtest86+_multiboot.bin
-rw-------  1 root root  5800305 Aug 18 11:23 System.map-5.10.0-1045-oem
-rw-------  1 root root  5970185 Jul  9 19:42 System.map-5.11.0-25-generic
-rw-------  1 root root  5973530 Aug 26 20:11 System.map-5.11.0-34-generic
lrwxrwxrwx  1 root root       25 Sep 20 11:47 vmlinuz -> vmlinuz-5.11.0-25-generic
-rw-------  1 root root 12542656 Aug 18 11:56 vmlinuz-5.10.0-1045-oem
-rw-------  1 root root 14740480 Jul  9 20:04 vmlinuz-5.11.0-25-generic
-rw-------  1 root root 14752320 Aug 26 20:29 vmlinuz-5.11.0-34-generic
lrwxrwxrwx  1 root root       25 Sep 20 11:47 vmlinuz.old -> vmlinuz-5.11.0-34-generic

It boots into:

$ uname -a
Linux work 5.10.0-1045-oem #47-Ubuntu SMP Wed Aug 18 10:41:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Now, from the GRUB menu, I can select any kernel just fine. What's happening to the automatic selection? Where else should I look?

Thanks!

bitdruid avatar
lk flag
am i getting this wrong or wouldn't it just solve your problem if you define the GRUB_DEFAULT= entry ?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.