Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mismathc between kernel files in /boot and gtub boot meu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Mon Sep 05, 2022 9:05 pm    Post subject: Mismathc between kernel files in /boot and gtub boot meu Reply with quote

I used genkernel to build kernel 5.15.59.
/boot was mounted and /er/src/linux pointed to the correct directory:
Code:
 $ ls -l /usr/src/linux
lrwxrwxrwx 1 root root 20 Sep  5 15:38 /usr/src/linux -> linux-5.15.59-gentoo

The build seems to have worked:
Code:
 $ ls /boot/
EFI   initramfs-5.15.59-gentoo-x86_64.img  System.map-5.15.59-gentoo-x86_64  vmlinuz-5.15.59-gentoo-x86_64
grub  initramfs-5.4.97-gentoo-x86_64.img   System.map-5.4.97-gentoo-x86_64   vmlinuz-5.4.97-gentoo-x86_64


grub-mkconfig seems to process both kernels:
Code:
 $ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.59-gentoo-x86_64
Found initrd image: /boot/initramfs-5.15.59-gentoo-x86_64.img
Found linux image: /boot/vmlinuz-5.4.97-gentoo-x86_64
Found initrd image: /boot/initramfs-5.4.97-gentoo-x86_64.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done


But when i rebooted the computer neither of the two kernels was in the grub boot menu.
Instead there where kernel listed whose files do not exist in /boot, for example 5.15.23

Also, a find-command for such files turned up empty:
Code:
sudo find / -name initramfs-5.15.23-gentoo-x86_64.img -type f  2>/dev/null > find_5.15.23.out



Is there an explanation for this weird behaviour?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Mon Sep 05, 2022 9:16 pm    Post subject: Reply with quote

Yes you ran grub-mkconfig with /boot unmounted.
These
Code:

$ ls /boot/
EFI   initramfs-5.15.59-gentoo-x86_64.img  System.map-5.15.59-gentoo-x86_64  vmlinuz-5.15.59-gentoo-x86_64
grub  initramfs-5.4.97-gentoo-x86_64.img   System.map-5.4.97-gentoo-x86_64   vmlinuz-5.4.97-gentoo-x86_64


reside in /
and are covered when /boot partition is mounted.
Do you have "noauto" flag for /boot in fstab?
Mount /boot and plz try again(reinstall kernel initramfs and update-grub)
_________________
:)


Last edited by alamahant on Mon Sep 05, 2022 9:20 pm; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Mon Sep 05, 2022 9:17 pm    Post subject: Reply with quote

jody,

Do you get different answers after
Code:
mount /boot


-- edit --
alamahant wins by a short head :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum