From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 D07E2138334 for ; Mon, 29 Jul 2019 20:10:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 370A1E0849; Mon, 29 Jul 2019 20:10:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 04244E083B for ; Mon, 29 Jul 2019 20:10:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 A2003348F77 for ; Mon, 29 Jul 2019 20:10:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B17E74B for ; Mon, 29 Jul 2019 20:10:24 +0000 (UTC) From: "Thomas Deutschmann" 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" Message-ID: <1564430426.86ce6816b789e707fa8348624b0643beeeb3c7eb.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: 86ce6816b789e707fa8348624b0643beeeb3c7eb X-VCS-Branch: master Date: Mon, 29 Jul 2019 20:10:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3c77ae01-17db-406d-853a-f2f6a276457c X-Archives-Hash: 5ece0985595c060db4234c42d987668b commit: 86ce6816b789e707fa8348624b0643beeeb3c7eb Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Jul 28 21:07:17 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Mon Jul 29 20:00:26 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=86ce6816 genkernel: Don't allow building kernel only when --kerncache is used but --no-install is set This just don't make sense. We wouldn't do anything. Signed-off-by: Thomas Deutschmann gentoo.org> genkernel | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/genkernel b/genkernel index 31a880d..f33379c 100755 --- a/genkernel +++ b/genkernel @@ -188,6 +188,14 @@ then gen_kerncache_is_valid fi +if isTrue "${KERNCACHE_IS_VALID}" && ! isTrue "${CMD_INSTALL}" && ! isTrue "${BUILD_RAMDISK}" +then + error_msg="Nothing to do: Selected action does not include building initramfs." + error_msg+=" Because kerncache is valid, no kernel will be build." + error_msg+=" However, due to set --no-install option, we will not even install kernel binary from kerncache." + gen_die "${error_msg}" +fi + print_info 1 '' 1 0 print_info 1 "Working with Linux kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}" print_info 1 "Using kernel config file '${KERNEL_CONFIG}' ..."