commit:     851a02a5006bb8603f1749f8995407c12ed81488
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 12 22:01:29 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Jan 12 22:17:45 2020 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=851a02a5

gen_configkernel.sh: config_kernel(): Make sure kernel supports initramfs

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gen_configkernel.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gen_configkernel.sh b/gen_configkernel.sh
index d651b0c..2f9a6a5 100755
--- a/gen_configkernel.sh
+++ b/gen_configkernel.sh
@@ -291,6 +291,12 @@ config_kernel() {
        local -a required_kernel_options
        [ -f "${KCONFIG_MODIFIED_MARKER}" ] && rm "${KCONFIG_MODIFIED_MARKER}"
 
+       # Ensure kernel supports initramfs
+       if isTrue "${BUILD_RAMDISK}"
+       then
+               kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" 
"CONFIG_BLK_DEV_INITRD" "y"
+       fi
+
        # --integrated-initramfs handling
        if isTrue "${INTEGRATED_INITRAMFS}"
        then

Reply via email to