diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-28 23:16:36 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-29 22:00:27 +0200 |
commit | f1d4e1574faf52d756c9f8af088b5f379f5b9798 (patch) | |
tree | bc8fc1e71f09f0101bd01cb66f62d7e080d64cf4 | |
parent | genkernel: Combine kerncache conditionals (diff) | |
download | genkernel-f1d4e157.tar.gz genkernel-f1d4e157.tar.bz2 genkernel-f1d4e157.zip |
genkernel: Only show information about kernel when kernel was actually installed
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-x | genkernel | 27 |
1 files changed, 17 insertions, 10 deletions
@@ -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 |