genkernel
automated kernel compilation and installation for Gentoo
TLDR
Automatically compile and install a generic kernel
SYNOPSIS
genkernel [options] action
DESCRIPTION
genkernel is a Gentoo Linux utility that automates the kernel compilation and installation process. It builds a generic kernel with broad hardware support, similar to kernels found in binary distributions.
The tool handles configuring, compiling, and installing the kernel along with generating an initramfs (initial ramdisk) required for booting. It can automatically detect hardware and enable appropriate kernel modules.
genkernel reads configuration from /etc/genkernel.conf and supports various filesystem, encryption, and boot features through command-line options.
PARAMETERS
all
Build kernel, modules, and initramfsbzImage
Build only the compressed kernel imageinitramfs
Build only the initial ramdiskkernel
Build only the kernel and modulesramdisk
Build only the ramdisk--menuconfig
Run menuconfig before compilation--kernname NAME
Tag the kernel and initramfs with NAME--kerneldir DIR
Use kernel source from DIR instead of /usr/src/linux--makeopts OPTS
Pass options to make (e.g., -j4)--no-clean
Don't run make clean before compilation--lvm
Add LVM support to initramfs--luks
Add LUKS encryption support to initramfs
CONFIGURATION
/etc/genkernel.conf
Main configuration file controlling default build options, paths, and features.
CAVEATS
Generic kernels are larger and may boot slower than custom-configured kernels. Compilation requires significant time and disk space. The /usr/src/linux symlink must point to the correct kernel source.
HISTORY
genkernel was developed for Gentoo Linux to provide an alternative to manual kernel configuration. While Gentoo traditionally emphasizes custom compilation, genkernel enables users to quickly generate working kernels without deep kernel configuration knowledge.
SEE ALSO
make(1), dracut(8), mkinitcpio(8)
