aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-28 23:16:36 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-29 22:00:27 +0200
commitf1d4e1574faf52d756c9f8af088b5f379f5b9798 (patch)
treebc8fc1e71f09f0101bd01cb66f62d7e080d64cf4
parentgenkernel: Combine kerncache conditionals (diff)
downloadgenkernel-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-xgenkernel27
1 files changed, 17 insertions, 10 deletions
diff --git a/genkernel b/genkernel
index d8700ea0..e405a951 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