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 AE660138334 for ; Thu, 21 Mar 2019 22:57:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99A0AE09C7; Thu, 21 Mar 2019 22:56:59 +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 6E184E09C7 for ; Thu, 21 Mar 2019 22:56:58 +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 D6249335CF3 for ; Thu, 21 Mar 2019 22:56:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 475ED56A for ; Thu, 21 Mar 2019 22:56:55 +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: <1553208948.02e67d4860b6a6fd3e9b23e18f757adfd3d62bed.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:bug642988 commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_initramfs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 02e67d4860b6a6fd3e9b23e18f757adfd3d62bed X-VCS-Branch: bug642988 Date: Thu, 21 Mar 2019 22:56:55 +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: 799bc7d9-310d-4c16-b95e-00a334200b3b X-Archives-Hash: 2b0eea3b5f6f01de5968f0cfca97ce15 commit: 02e67d4860b6a6fd3e9b23e18f757adfd3d62bed Author: Thomas Deutschmann gentoo org> AuthorDate: Thu Mar 21 22:55:48 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Thu Mar 21 22:55:48 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=02e67d48 create_initramfs(): Add check for CONFIG_FILE_LOCKING=y when LVM is used Closes: https://bugs.gentoo.org/673590 Signed-off-by: Thomas Deutschmann gentoo.org> gen_initramfs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index a0c7601..50315cb 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1080,6 +1080,12 @@ create_initramfs() { local CONFGREP=grep fi + if isTrue "${LVM}" ; then + if ! ${CONFGREP} -q "^CONFIG_FILE_LOCKING=y" "${ACTUAL_KERNEL_CONFIG}" ; then + gen_die "LVM will require a kernel with CONFIG_FILE_LOCKING=y set!" + fi + fi + if isTrue "${INTEGRATED_INITRAMFS}" then # Explicitly do not compress if we are integrating into the kernel. 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 5A0B9138334 for ; Thu, 21 Mar 2019 23:51:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38D90E09D4; Thu, 21 Mar 2019 23:51:23 +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 153DCE09D4 for ; Thu, 21 Mar 2019 23:51:23 +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 1E1D6335D24 for ; Thu, 21 Mar 2019 23:51:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4F6457B for ; Thu, 21 Mar 2019 23:51:17 +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: <1553208948.02e67d4860b6a6fd3e9b23e18f757adfd3d62bed.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_initramfs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 02e67d4860b6a6fd3e9b23e18f757adfd3d62bed X-VCS-Branch: master Date: Thu, 21 Mar 2019 23:51:17 +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: 187cfee7-821b-4779-9577-cdd1bd0761a3 X-Archives-Hash: 9ff0655c41080ab01858f570981e7186 Message-ID: <20190321235117.B3H_6vyM_MOAv7RO6dqh6e1AGw5F5JhSbON5QcGt9CM@z> commit: 02e67d4860b6a6fd3e9b23e18f757adfd3d62bed Author: Thomas Deutschmann gentoo org> AuthorDate: Thu Mar 21 22:55:48 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Thu Mar 21 22:55:48 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=02e67d48 create_initramfs(): Add check for CONFIG_FILE_LOCKING=y when LVM is used Closes: https://bugs.gentoo.org/673590 Signed-off-by: Thomas Deutschmann gentoo.org> gen_initramfs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index a0c7601..50315cb 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1080,6 +1080,12 @@ create_initramfs() { local CONFGREP=grep fi + if isTrue "${LVM}" ; then + if ! ${CONFGREP} -q "^CONFIG_FILE_LOCKING=y" "${ACTUAL_KERNEL_CONFIG}" ; then + gen_die "LVM will require a kernel with CONFIG_FILE_LOCKING=y set!" + fi + fi + if isTrue "${INTEGRATED_INITRAMFS}" then # Explicitly do not compress if we are integrating into the kernel.