diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-03-03 01:38:31 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-03-04 00:53:06 +0100 |
commit | 8768d9f1b9e8d166dbbd3428b221578c7504679c (patch) | |
tree | e61d919c7cc642f1ffcf54b914eb9499e3e67f7e /gen_cmdline.sh | |
parent | defaults/software.sh: Add coreutils (diff) | |
download | genkernel-8768d9f1b9e8d166dbbd3428b221578c7504679c.tar.gz genkernel-8768d9f1b9e8d166dbbd3428b221578c7504679c.tar.bz2 genkernel-8768d9f1b9e8d166dbbd3428b221578c7504679c.zip |
Make kernel config filename customizable
This commit will make kernel config filename used by --save-config
feature customizable like previous commit 769a07fd3e947 did for
initramfs and kernel image.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_cmdline.sh')
-rwxr-xr-x | gen_cmdline.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gen_cmdline.sh b/gen_cmdline.sh index aa54c29f..a34a7396 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -193,6 +193,8 @@ longusage() { echo " --postclear Clear all tmp files and caches after genkernel has run" echo " --no-postclear Do not clean up after genkernel has run" echo " Output Settings" + echo " --kernel-config-filename=<...>" + echo " Set kernel config filename" echo " --kernel-filename=<...>" echo " Set kernel filename" echo " --kernel-symlink-name=<...>" @@ -701,6 +703,10 @@ parse_cmdline() { CMD_KERNCACHE="${*#*=}" print_info 3 "KERNCACHE: ${CMD_KERNCACHE}" ;; + --kernel-config-filename=*) + CMD_KERNEL_CONFIG_FILENAME="${*#*=}" + print_info 3 "CMD_KERNEL_CONFIG_FILENAME: ${CMD_KERNEL_CONFIG_FILENAME}" + ;; --kernel-filename=*) CMD_KERNEL_FILENAME="${*#*=}" print_info 3 "CMD_KERNEL_FILENAME: ${CMD_KERNEL_FILENAME}" |