diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-28 16:33:25 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-29 22:00:24 +0200 |
commit | 769a07fd3e947ffb216ea94887d752a27ea212d9 (patch) | |
tree | 055af5d9402ab9cb59438c0719be73b6eb559be3 /genkernel.conf | |
parent | keymaps: Add bepo and colemak keymap (diff) | |
download | genkernel-769a07fd3e947ffb216ea94887d752a27ea212d9.tar.gz genkernel-769a07fd3e947ffb216ea94887d752a27ea212d9.tar.bz2 genkernel-769a07fd3e947ffb216ea94887d752a27ea212d9.zip |
Make initramfs and kernel filename customizable
New options like --initramfs-filename or --kernel-filename will
allow user to customize filenames used when installing initramfs
or kernel into $BOOTDIR. Therefore --kernelname (KNAME) option
was removed.
Filename can contain placeholders like '%%ARCH%%' which will get
replaced at runtime. Man page contains more information.
Bug: https://bugs.gentoo.org/395095
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'genkernel.conf')
-rw-r--r-- | genkernel.conf | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/genkernel.conf b/genkernel.conf index 0c1a2e7..23e015b 100644 --- a/genkernel.conf +++ b/genkernel.conf @@ -172,7 +172,7 @@ NOCOLOR="false" # Run the specified command in the current environment after the kernel and # modules have been compiled, useful to rebuild external kernel module # (see MODULEREBUILD above) or installing additional -# files (use 'copy_image_with_preserve dtb path/to/dtb dtb ${KNAME}-${ARCH}-${KV}') +# files (use 'copy_image_with_preserve dtb path/to/dtb dtb <kernelname>') #CMD_CALLBACK="" @@ -279,10 +279,13 @@ DEFAULT_KERNEL_SOURCE="/usr/src/linux" # =========MISC KERNEL CONFIGURATION============ # -# Tag the kernel and initramfs with a name: -# If not defined the option defaults to -# 'genkernel' -#KNAME="genkernel" +# Set kernel filename which will be used when kernel will be installed +# into BOOTDIR. See man page to learn more about available placeholders. +#KERNEL_FILENAME="kernel-genkernel-%%ARCH%%-%%KV%%" + +# Set kernel symlink name which will be used when kernel will be installed +# into BOOTDIR and SYMLINK option is enabled +#KERNEL_SYMLINK_NAME="kernel" # This option will set kernel option CONFIG_LOCALVERSION. # Use special value "UNSET" to unset already set CONFIG_LOCALVERSION. @@ -312,6 +315,15 @@ DEFAULT_KERNEL_SOURCE="/usr/src/linux" # =========MISC INITRAMFS CONFIGURATION============ # +# Set initramfs filename which will be used when initramfs will be +# installed into BOOTDIR. See man page to learn more about available +# placeholders. +#INITRAMFS_FILENAME="initramfs-genkernel-%%ARCH%%-%%KV%%" + +# Set initramfs symlink name which will be used when initramfs will be +# installed into BOOTDIR and SYMLINK option is enabled +#INITRAMFS_SYMLINK_NAME="initramfs" + # Copy all compiled kernel modules to the initramfs #ALLRAMDISKMODULES="no" |