aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-16 20:50:23 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-16 20:50:23 +0200
commit71fbd7a7cbce3a1ece700953d36767ac68bdf4ac (patch)
treefcc843cd2879c38994bfe4a1bbc77a1323c97186 /gen_configkernel.sh
parentgen_configkernel.sh: config_kernel(): Fix code style (diff)
downloadgenkernel-71fbd7a7cbce3a1ece700953d36767ac68bdf4ac.tar.gz
genkernel-71fbd7a7cbce3a1ece700953d36767ac68bdf4ac.tar.bz2
genkernel-71fbd7a7cbce3a1ece700953d36767ac68bdf4ac.zip
gen_configkernel.sh: config_kernel(): Ensure that CONFIG_TTY & CONFIG_UNIX98_PTYS is set
...when building initramfs. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_configkernel.sh')
-rwxr-xr-xgen_configkernel.sh11
1 files changed, 11 insertions, 0 deletions
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