On 2/1/22 13:44, Dale wrote:
Dale wrote:
Neil Bothwick wrote:
On Sat, 1 Jan 2022 15:44:51 +0000, Wols Lists wrote:

Compiling the kernel and modules? Replace 1 with

make all modules_install install

There's also the matter of the initramfs, one of the main reasons
people use genkernel, although I prefer dracut for this.

until you trip over genkernel's "features" ... like AUTOMOUNT_BOOT,
which doesn't work, by design. Or NO_INSTALL, which does rather more
than just not installing ...

I'm investigating source_mage, and ought to investigate dracut.
Once you have a working kernel, there's very little to do on updates. A
script that runs

cd /usr/src/linux
zcate /proc/config.gz >.config
make oldconfig
make all modules_install install
dracut --kver=$(cat include/config/kernel.release) --xz
update the bootloader

mostly does it all, with a few frills thrown in to cover things like
rebuilding modules.


Can you explain this part a bit?  How it knows what version for example
to build against?  Does it follow the link in /usr/src/linux, eselect
info or something else?


dracut --kver=$(cat include/config/kernel.release) --xz
The one thing that stumps me is figuring out how to tell dracut what
version I want built.  I keep 2, 3 and sometimes 4 kernels of different
versions lurking about in /boot.

Thanks.

Dale

:-)  :-)

I got it figured out.  That's a little like cheating.  LOL

Dale

:-)  :-)
rattus ~ # (cd /usr/src/linux && make kernelversion)
5.10.76-gentoo-r1
rattus ~ #

Reply via email to