View previous topic :: View next topic |
Author |
Message |
MadNoah n00b
Joined: 16 May 2018 Posts: 24
|
Posted: Thu May 17, 2018 12:08 pm Post subject: kernel returns the wrong version number |
|
|
I use the standard Gentoo kernel and the Efistub bootloader.
Recently I upgraded the kernel to version 4.16.5 as shown in this wiki article:
https://wiki.gentoo.org/wiki/Kernel/Upgrade
Although I uninstalled the old kernel sources and installed the new kernel,
the command uname -a still gives me the old kernel version.
However, if you edit the configuration file and reinstall the kernel, the desired effects will occur.
Can someone explain this strange behavior?
Code: | # ls /usr/src/
linux-4.16.5-gentoo/ linux@ |
Code: | # ls /usr/src/linux/
Documentation/ arch/ certs/ distro/ firmware/ include/ ipc/ lib/ net/ scripts/ sound/ usr/ COPYING Kbuild MAINTAINERS Module.symvers System.map linux-4.16.5-gentoo@ modules.order vmlinux.o
LICENSES/ block/ crypto/ drivers/ fs/ init/ kernel/ mm/ samples/ security/ tools/ virt/ CREDITS Kconfig Makefile README built-in.o modules.builtin vmlinux* |
Code: | # ls /boot/
efi/ System.map-4.16.5-gentoo config-4.16.5-gentoo vmlinuz-4.16.5-gentoo |
Code: | # uname -a
Linux homunculus 4.9.95-gentoo #1 SMP Wed Apr 25 23:47:39 CEST 2018 x86_64 Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz GenuineIntel GNU/Linux |
Code: | # dmesg
[ 0.000000] Linux version 4.9.95-gentoo (root@livecd) (gcc version 6.4.0 (Gentoo 6.4.0-r1 p1.3) ) #1 SMP Wed Apr 25 23:47:39 CEST 2018 |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Thu May 17, 2018 12:11 pm Post subject: |
|
|
You tried to mount boot before ls?
Code: | # mount /boot
# ls /boot |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
MadNoah n00b
Joined: 16 May 2018 Posts: 24
|
Posted: Thu May 17, 2018 12:24 pm Post subject: |
|
|
yes
Code: | # mount /boot
mount: /boot: /dev/sda1 already mounted on /boot. |
Code: | # ls /boot
efi/ System.map-4.16.5-gentoo* config-4.16.5-gentoo* vmlinuz-4.16.5-gentoo* |
|
|
Back to top |
|
|
MadNoah n00b
Joined: 16 May 2018 Posts: 24
|
Posted: Thu May 17, 2018 12:30 pm Post subject: |
|
|
that was the first thing i was thinking of, because of the dmesg output saying something strange about "root@livecd" |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Thu May 17, 2018 12:32 pm Post subject: |
|
|
And output of command
Code: | $ strings /boot/vmlinuz-4.16.5-gentoo |grep -E "^[1-4]\.[0-9][0-9]*\.[0-9][0-9]*" |awk '{print $1}' |head -1 |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
MadNoah n00b
Joined: 16 May 2018 Posts: 24
|
Posted: Thu May 17, 2018 1:35 pm Post subject: |
|
|
Code: | # strings /boot/vmlinuz-4.16.5-gentoo |grep -E "^[1-4]\.[0-9][0-9]*\.[0-9][0-9]*" |awk '{print $1}' |head -1
4.16.5-gentoo |
|
|
Back to top |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 975 Location: The Village, Portmeirion
|
Posted: Thu May 17, 2018 2:41 pm Post subject: |
|
|
I think it's booting the stub kernel that is in the EFI directory, not the one in boot.
|
|
Back to top |
|
|
MadNoah n00b
Joined: 16 May 2018 Posts: 24
|
Posted: Sat May 19, 2018 2:21 pm Post subject: |
|
|
Thanks. Efibootmgr -v gave some strange hexadezimal Output. Re emerging efibootmgr and running the above command resultet in no output. After creating a new boot entry the new kernel was booting without problems. It is still mysterious to me why the old Kernel was even booting without a boot entry set. |
|
Back to top |
|
|
|