commit: f1d4e1574faf52d756c9f8af088b5f379f5b9798 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Sun Jul 28 21:16:36 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Mon Jul 29 20:00:27 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=f1d4e157
genkernel: Only show information about kernel when kernel was actually installed Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> genkernel | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/genkernel b/genkernel index d8700ea..e405a95 100755 --- a/genkernel +++ b/genkernel @@ -407,11 +407,15 @@ then esac else print_info 1 '' - print_info 1 "You will find the kernel image in '${TMPDIR}/${GK_FILENAME_TEMP_KERNEL}'." - if isTrue "${GENZIMAGE}" + if ! isTrue "${KERNCACHE_IS_VALID}" then - print_info 1 "You will find the kernelz binary in '${TMPDIR}/${GK_FILENAME_TEMP_KERNELZ}'." + print_info 1 "You will find the kernel image in '${TMPDIR}/${GK_FILENAME_TEMP_KERNEL}'." + + if isTrue "${GENZIMAGE}" + then + print_info 1 "You will find the kernelz binary in '${TMPDIR}/${GK_FILENAME_TEMP_KERNELZ}'." + fi fi if isTrue "${BUILD_RAMDISK}" @@ -420,13 +424,16 @@ then fi fi - print_info 1 '' - print_info 1 'Required kernel parameter:' - print_info 1 '' - print_info 1 ' root=/dev/$ROOT' - 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 "${CMD_INSTALL}" || ! isTrue "${KERNCACHE_IS_VALID}" + then + print_info 1 '' + print_info 1 'Required kernel parameter:' + print_info 1 '' + print_info 1 ' root=/dev/$ROOT' + 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' + fi if isTrue "${show_warning_initramfs_is_required}" && isTrue "${BUILD_RAMDISK}" then