commit:     9e10c8f8777bb4bae015f174beb11711ab0b719d
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 29 04:01:27 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Dec 29 04:01:27 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=9e10c8f8

genkernel: Don't advertise initramfs when it was integrated into kernel (2)

Commit 1b395dd9d38690a0786d750c422d3bd652460a4b only handled the case
when --no-install was set.

This commit will also handle the case when --install is set.

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

 genkernel | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/genkernel b/genkernel
index 3d25634..ae2df04 100755
--- a/genkernel
+++ b/genkernel
@@ -458,6 +458,13 @@ then
                print_info 1 ''
                print_info 1 'Where $ROOT is the device node for your root 
partition as the'
                print_info 1 'one specified in /etc/fstab'
+
+               if isTrue "${INTEGRATED_INITRAMFS}" && isTrue "${BUILD_RAMDISK}"
+               then
+                       show_warning_initramfs_is_required=no
+                       print_info 1 ''
+                       print_info 1 "Initramfs is integrated into kernel 
image."
+               fi
        fi
 
        if isTrue "${show_warning_initramfs_is_required}" && isTrue 
"${BUILD_RAMDISK}"

Reply via email to