View previous topic :: View next topic |
Author |
Message |
jody l33t
Joined: 16 Oct 2007 Posts: 668 Location: Switzerland
|
Posted: Mon Sep 05, 2022 9:05 pm Post subject: Mismathc between kernel files in /boot and gtub boot meu |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Mon Sep 05, 2022 9:16 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Mon Sep 05, 2022 9:17 pm Post subject: |
|
|
jody,
Do you get different answers after
-- 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 |
|
|
|