From: Michael Prokop Date: Fri, 12 May 2017 14:39:00 +0000 (+0200) Subject: Delete /lib/udev/rules.d/69-lvm-metad.rules to avoid automatic LVM scanning X-Git-Tag: v0.29.4~3 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=d6e316346da529faf3ff8ab1b79c66193ecf21fc Delete /lib/udev/rules.d/69-lvm-metad.rules to avoid automatic LVM scanning This might not be enough yet according to initial tests, but it's something we want to disable for sure. See grml/grml#31 --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/50-lvm b/etc/grml/fai/config/scripts/GRMLBASE/50-lvm new file mode 100755 index 0000000..e94fc58 --- /dev/null +++ b/etc/grml/fai/config/scripts/GRMLBASE/50-lvm @@ -0,0 +1,21 @@ +#!/bin/bash +# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/50-lvm +# Purpose: adjust LVM configuration +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2 or any later version. +################################################################################ + +set -u +set -e + +if ! [ -r "${target}/lib/udev/rules.d/69-lvm-metad.rules" ] ; then + echo "File /lib/udev/rules.d/69-lvm-metad.rules doesn't exist, skipping execution of script." + exit 0 +fi + +echo "Removing /lib/udev/rules.d/69-lvm-metad.rules to avoid automatic LVM scanning" +rm -f "${target}/lib/udev/rules.d/69-lvm-metad.rules" + +## END OF FILE ################################################################# +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2