commit: 02e67d4860b6a6fd3e9b23e18f757adfd3d62bed Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Thu Mar 21 22:55:48 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> 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 <whissi <AT> 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.
