diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-16 20:50:23 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-16 20:50:23 +0200 |
commit | 71fbd7a7cbce3a1ece700953d36767ac68bdf4ac (patch) | |
tree | fcc843cd2879c38994bfe4a1bbc77a1323c97186 | |
parent | gen_configkernel.sh: config_kernel(): Fix code style (diff) | |
download | genkernel-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>
-rwxr-xr-x | gen_configkernel.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gen_configkernel.sh b/gen_configkernel.sh index c0c2439d..503812ce 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 |