commit: 71fbd7a7cbce3a1ece700953d36767ac68bdf4ac
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 16 18:50:23 2019 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Jul 16 18:50:23 2019 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=71fbd7a7
gen_configkernel.sh: config_kernel(): Ensure that CONFIG_TTY &
CONFIG_UNIX98_PTYS is set
...when building initramfs.
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
gen_configkernel.sh | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gen_configkernel.sh b/gen_configkernel.sh
index c0c2439..503812c 100755
--- a/gen_configkernel.sh
+++ b/gen_configkernel.sh
@@ -238,6 +238,17 @@ config_kernel() {
fi
fi
+ if isTrue "${BUILD_RAMDISK}"
+ then
+ # We really need this or we will fail to boot
+ print_info 2 "$(get_indent 1)>> Ensure that required kernel
options for genkernel's initramfs usage are set ..."
+ kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_TTY" "y" \
+ && required_kernel_options+=( 'CONFIG_TTY' )
+
+ kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config"
"CONFIG_UNIX98_PTYS" "y" \
+ && required_kernel_options+=( 'CONFIG_UNIX98_PTYS' )
+ fi
+
# If the user has configured DM as built-in, we need to respect that.
local cfg_CONFIG_BLK_DEV_DM=$(kconfig_get_opt
"${KERNEL_OUTPUTDIR}/.config" "CONFIG_BLK_DEV_DM")
case "${cfg_CONFIG_BLK_DEV_DM}" in