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 C5BC5138334 for ; Mon, 29 Jul 2019 20:10:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 13D6EE0788; Mon, 29 Jul 2019 20:10:27 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 ED9D5E0788 for ; Mon, 29 Jul 2019 20:10:26 +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 7CE24348F7A for ; Mon, 29 Jul 2019 20:10:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E780873E for ; Mon, 29 Jul 2019 20:10:23 +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: <1564348779.fd466708edd8e02bce891a1a1061694975f187de.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: fd466708edd8e02bce891a1a1061694975f187de X-VCS-Branch: master Date: Mon, 29 Jul 2019 20:10:23 +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: 1d784f35-28dd-4de7-b9e8-67051e239ae8 X-Archives-Hash: b1ca8138d5acdc136f415eadab6f187a commit: fd466708edd8e02bce891a1a1061694975f187de Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Jul 27 22:25:54 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun Jul 28 21:19:39 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=fd466708 genkernel: Call gen_kerncache_extract_config() only when --save-config is set gen_kerncache_extract_config() will write /etc/kernels/kernel-config-* file. When not using --kerncache, we will create that file only when --save-config option is set. Let's assume user wants the same when using --kerncache... Signed-off-by: Thomas Deutschmann gentoo.org> genkernel | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/genkernel b/genkernel index 34de18f..da3d2d8 100755 --- a/genkernel +++ b/genkernel @@ -262,8 +262,11 @@ then gen_kerncache_extract_modules fi - print_info 1 '' 1 0 - gen_kerncache_extract_config + if isTrue "${SAVE_CONFIG}" + then + print_info 1 '' 1 0 + gen_kerncache_extract_config + fi fi # Run callback