commit: 63dc301f06f80253e341da756e9cb10aca336eb8 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Mon Mar 15 20:53:56 2021 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Mon Mar 15 20:53:56 2021 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=63dc301f
genkernel: show warning when CONFIG_CMDLINE_OVERRIDE=y is set Link 1: https://forums.gentoo.org/viewtopic-t-1131897.html Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> genkernel | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/genkernel b/genkernel index 7d5a75e..046e0e3 100755 --- a/genkernel +++ b/genkernel @@ -532,6 +532,18 @@ then print_warning 1 'add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.' fi unset CONFGREP_CMD + + cfg_CONFIG_CMDLINE_OVERRIDE=$(kconfig_get_opt "${KERNEL_CONFIG}" CONFIG_CMDLINE_OVERRIDE) + if [ "${cfg_CONFIG_CMDLINE_OVERRIDE}" = "y" ] + then + cfg_CONFIG_CMDLINE=$(kconfig_get_opt "${KERNEL_CONFIG}" CONFIG_CMDLINE) + print_warning 1 '' + print_warning 1 "${BOLD}Note:${NORMAL}" + print_warning 1 'You have set CONFIG_CMDLINE_OVERRIDE=y.' + print_warning 1 "You will be unable to alter set kernel parameters (${cfg_CONFIG_CMDLINE}) at runtime!" + unset cfg_CONFIG_CMDLINE + fi + unset cfg_CONFIG_CMDLINE_OVERRIDE fi isTrue "${CMD_INSTALL}" && restore_boot_mount_state
