dist-kernel-utils.eclass
Functions
- dist-kernel_build_initramfs <output> <version>
-
Build an initramfs for the kernel. <output> specifies the absolute path where initramfs will be created, while <version> specifies the kernel version, used to find modules.
Note: while this function uses dracut at the moment, other initramfs variants may be supported in the future.
- dist-kernel_get_image_path
-
Get relative kernel image path specific to the current ${ARCH}.
- dist-kernel_install_kernel <version> <image> <system.map>
-
Install kernel using installkernel tool. <version> specifies the kernel version, <image> full path to the image, <system.map> full path to System.map.
- dist-kernel_reinstall_initramfs <kv-dir> <kv-full>
-
Rebuild and install initramfs for the specified dist-kernel. <kv-dir> is the kernel source directory (${KV_DIR} from linux-info), while <kv-full> is the full kernel version (${KV_FULL}). The function will determine whether <kernel-dir> is actually a dist-kernel, and whether initramfs was used.
This function is to be used in pkg_postinst() of ebuilds installing kernel modules that are included in the initramfs.
Authors
Michał Górny <mgorny@gentoo.org>
Maintainers
Distribution Kernel Project <dist-kernel@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/