From: Michael Prokop Date: Fri, 26 May 2017 21:20:44 +0000 (+0200) Subject: Delete /usr/lib/udev/rules.d/64-md-raid-assembly.rules to avoid automatic mdadm scanning X-Git-Tag: v0.29.6~1 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=78b2757daaad5f7878b3ebd7d911cdc7cb9690eb;hp=c69679e378d752b91393eaf56c47e9a58f91752f Delete /usr/lib/udev/rules.d/64-md-raid-assembly.rules to avoid automatic mdadm scanning We don't want to automatically enable any present mdadm devices. The safest way is to just remove /usr/lib/udev/rules.d/64-md-raid-assembly.rules, since it doesn't seem to provide a stable and long-term working way how to adjust its behavior. Closes grml/grml#45 --- 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