X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F52-mdadm;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F52-mdadm;h=c54e00f38ce1c71d686d6b62cbb111885fac843c;hb=78b2757daaad5f7878b3ebd7d911cdc7cb9690eb;hp=0000000000000000000000000000000000000000;hpb=c69679e378d752b91393eaf56c47e9a58f91752f;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/52-mdadm b/etc/grml/fai/config/scripts/GRMLBASE/52-mdadm new file mode 100755 index 0000000..c54e00f --- /dev/null +++ b/etc/grml/fai/config/scripts/GRMLBASE/52-mdadm @@ -0,0 +1,21 @@ +#!/bin/bash +# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/52-mdadm +# Purpose: adjust mdadm 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}/usr/lib/udev/rules.d/64-md-raid-assembly.rules" ] ; then + echo "File /usr/lib/udev/rules.d/64-md-raid-assembly.rules doesn't exist, skipping execution of script." + exit 0 +fi + +echo "Removing /usr/lib/udev/rules.d/64-md-raid-assembly.rules to avoid automatic mdadm scanning" +rm -f "${target}/usr/lib/udev/rules.d/64-md-raid-assembly.rules" + +## END OF FILE ################################################################# +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2