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 EEBC1138334 for ; Mon, 29 Jul 2019 20:10:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DDE92E0858; 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 BBE7BE0858 for ; Mon, 29 Jul 2019 20:10:29 +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 EFA4C348F82 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 7E2A674D 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.15b34c0a3b9c63cbedc25db05081fc5e2ed00b67.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: 15b34c0a3b9c63cbedc25db05081fc5e2ed00b67 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: 577a4068-553c-42b5-aa0d-57539e33aa51 X-Archives-Hash: ba6130fea51329bfd0f095a4c0be2d05 commit: 15b34c0a3b9c63cbedc25db05081fc5e2ed00b67 Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Jul 28 21:10:49 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=15b34c0a genkernel: Don't install modules to /lib/modules when --kerncache is used but --no-install is set Bug: https://bugs.gentoo.org/505810 Signed-off-by: Thomas Deutschmann gentoo.org> genkernel | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/genkernel b/genkernel index f33379c..c3aa8d1 100755 --- a/genkernel +++ b/genkernel @@ -280,6 +280,21 @@ if isTrue "${KERNCACHE_IS_VALID}" then if ! isTrue "${BUILD_STATIC}" then + if ! isTrue "${CMD_INSTALL}" && [ -z "${INSTALL_MOD_PATH}" ] + then + # We have to set $INSTALL_MOD_PATH to avoid installing files + # to /lib/modules because --no-install was set + INSTALL_MOD_PATH="$(mktemp -d -p "${TEMP}" kerncache-modules.XXXXXXX 2>/dev/null)" + if [ -z "${INSTALL_MOD_PATH}" ] + then + gen_die "Internal error: Variable 'INSTALL_MOD_PATH' is empty; mktemp() for kerncache modules failed!" + else + print_info 5 '' 1 0 + print_info 5 "INSTALL_MOD_PATH set to '${INSTALL_MOD_PATH}' because --kerncache is used but --no-install was set ..." + mkdir "${INSTALL_MOD_PATH}/lib" || gen_die "Failed to create '${INSTALL_MOD_PATH}/lib'!" + fi + fi + print_info 1 '' 1 0 gen_kerncache_extract_modules fi