View previous topic :: View next topic |
Author |
Message |
davidbryant Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19355311385ee2766e6b1ee.gif)
Joined: 11 Jun 2020 Posts: 164 Location: Canyon Lake, Texas
|
Posted: Sun Feb 06, 2022 6:00 pm Post subject: Odd problems when regenerating new kernel (5.15.19) |
|
|
Yesterday when I ran "emerge --update --deep @world" I got a new set of Linux sources. So I upgraded from 5.15.16-gentoo-x86_64 to 5.15.19-gentoo-x86_64. Everything went smoothly.
Today I tweaked my .config file just a little bit, and recompiled the kernel. The "make && make modules_install" ran in just about two minutes, which seems distinctly odd. It usually takes 7 or 8 minutes to do that on my Dell XPS8930 (8 core Intel CPU). When I rebooted the system I got a bunch of errors saying "invalid signature" on some kernel modules, and the boot died after about two seconds. So I regenerated the initramfs file (I use dracut) and tried again. This was also odd ... dracut gave me a lot of error messages, and created an initramfs file that was just 4.2 MiB (the previous version, the one I built yesterday, was 7.2 MiB). And the system wouldn't boot with the new initramfs file.
I had backed everything up carefully, so it was relatively simple to get my "old" kernel working again (the one I compiled yesterday). I've been using Gentoo for almost two years, and this is the first time I have encountered such a problem. Does anyone have any idea why such things would happen? I would like to eliminate some unnecessary drivers for hardware I do not have ... the configuration file I started with two years ago had virtually every brand of hardware enabled, and I've been whittling things away whenever I have some extra free time. _________________ David Bryant
Canyon Lake, Texas |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5394 Location: Bavaria
|
Posted: Sun Feb 06, 2022 7:22 pm Post subject: Re: Odd problems when regenerating new kernel (5.15.19) |
|
|
davidbryant wrote: | [...] I got a bunch of errors saying "invalid signature" on some kernel modules, [...] |
This looks like you have enabled signed modules: CONFIG_MODULE_SIG
Code: | [*] Enable loadable module support --->
[*] Module signature verification |
-or- you have enabled Kernel Lockdown:
Code: | Security options --->
[*] Basic module for enforcing kernel lockdown |
which enables also signed modules; see help from CONFIG_MODULE_SIG
Code: | Selected by [y]:
- SECURITY_LOCKDOWN_LSM [=y] && SECURITY [=y] && MODULES [=y] |
P.S.: See more here: https://wiki.gentoo.org/wiki/Signed_kernel_module_support |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Goverp Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/152613747847c6fd276c31a.jpg)
Joined: 07 Mar 2007 Posts: 2204
|
Posted: Mon Feb 07, 2022 9:30 am Post subject: Re: Odd problems when regenerating new kernel (5.15.19) |
|
|
davidbryant wrote: | ...
Today I tweaked my .config file just a little bit, and recompiled the kernel. The "make && make modules_install" ran in just about two minutes, which seems distinctly odd. It usually takes 7 or 8 minutes to do that on my Dell XPS8930 (8 core Intel CPU).
... |
Unless you ran "make clean" between kernel "make" runs (and in general there's no need to "make clean"), the kernel build make scripts will only recompile the bits affected by your config changes. Small change means small compilation, unless the change hits one of the kernel headers, in which case you'll get something like a full recompilation. For example, adding an ethernet card only requires compiling its driver, but adding hibernate support hits _everything_. _________________ Greybeard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|