Delete /lib/udev/rules.d/69-lvm-metad.rules to avoid automatic LVM scanning
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 50-lvm
1 #!/bin/bash
2 # Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/50-lvm
3 # Purpose:       adjust LVM configuration
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2 or any later version.
7 ################################################################################
8
9 set -u
10 set -e
11
12 if ! [ -r "${target}/lib/udev/rules.d/69-lvm-metad.rules" ] ; then
13   echo "File /lib/udev/rules.d/69-lvm-metad.rules doesn't exist, skipping execution of script."
14   exit 0
15 fi
16
17 echo "Removing /lib/udev/rules.d/69-lvm-metad.rules to avoid automatic LVM scanning"
18 rm -f "${target}/lib/udev/rules.d/69-lvm-metad.rules"
19
20 ## END OF FILE #################################################################
21 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2