DIST-KERNEL-UTILS.ECLASS

Section: eclass-manpages (5)
Updated: Apr 2021
Index Return to Main Contents

NAME

dist-kernel-utils.eclass - Utility functions related to Distribution Kernels

DESCRIPTION

This eclass provides various utility functions related to Distribution Kernels.

SUPPORTED EAPIS

7

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/

FILES

dist-kernel-utils.eclass

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/dist-kernel-utils.eclass


Index

NAME
DESCRIPTION
SUPPORTED EAPIS
FUNCTIONS
AUTHORS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:27:01 GMT, April 18, 2021