diff options
author | root <root@rshg054.dnsready.net> | 2011-09-18 23:14:34 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-09-18 23:14:34 +0000 |
commit | f57b139ded4e8c4b10555985513b3f9a70a70e12 (patch) | |
tree | 5c1e21523a0039ae25bd6237e79cc8158e068bd5 /core/mdadm/mdadm_udev_install | |
parent | c7fd3b08e227a739803d62e0bb3033ebe65da775 (diff) |
Sun Sep 18 23:14:34 UTC 2011
Diffstat (limited to 'core/mdadm/mdadm_udev_install')
-rw-r--r-- | core/mdadm/mdadm_udev_install | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/core/mdadm/mdadm_udev_install b/core/mdadm/mdadm_udev_install new file mode 100644 index 000000000..9fc161624 --- /dev/null +++ b/core/mdadm/mdadm_udev_install @@ -0,0 +1,23 @@ +# vim: set ft=sh: + +build() +{ + MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-") " + BINARIES="" + FILES="" + SCRIPT="" + # check if a custom mdadm.conf exists + if grep -q ^ARRAY /etc/mdadm.conf; then + echo "Custom /etc/mdadm.conf file will be used in initramfs for assembling arrays." + add_file "/etc/mdadm.conf" + fi + add_binary "/sbin/mdadm" + add_file "/lib/udev/rules.d/64-md-raid.rules" +} + +help () +{ +cat<<HELPEOF + This hook loads raid arrays with udev. +HELPEOF +} |