From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1102947-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E7279138334 for <garchives@archives.gentoo.org>; Mon, 29 Jul 2019 20:10:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3317DE083B; Mon, 29 Jul 2019 20:10:29 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0429FE0848 for <gentoo-commits@lists.gentoo.org>; Mon, 29 Jul 2019 20:10:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E94DB348F7F for <gentoo-commits@lists.gentoo.org>; Mon, 29 Jul 2019 20:10:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A41E6751 for <gentoo-commits@lists.gentoo.org>; Mon, 29 Jul 2019 20:10:24 +0000 (UTC) From: "Thomas Deutschmann" <whissi@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" <whissi@gentoo.org> Message-ID: <1564430427.f1d4e1574faf52d756c9f8af088b5f379f5b9798.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: genkernel X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: f1d4e1574faf52d756c9f8af088b5f379f5b9798 X-VCS-Branch: master Date: Mon, 29 Jul 2019 20:10:24 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d05f51a5-72ce-407b-8e87-b4628e796bbd X-Archives-Hash: 06da0efcf3096998cae5fa58a4e9e1f5 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