archrelease: copy trunk to testing-x86_64
[arch-packages.git] / mdadm / trunk / mdadm_udev_install
blob64a0862c1d693324a63fc415681397ca933ba94e
1 #!/bin/bash
3 build() {
4 add_checked_modules -f 'dm-' 'drivers/md/*'
6 # check if a custom mdadm.conf exists
7 if grep -qw ^ARRAY "$BASEDIR/etc/mdadm.conf"; then
8 echo "Custom /etc/mdadm.conf file will be used in initramfs for assembling arrays."
9 add_file "/etc/mdadm.conf"
12 map add_udev_rule \
13 '63-md-raid-arrays.rules' \
14 '64-md-raid-assembly.rules'
17 help() {
18 cat <<HELPEOF
19 This hook loads the necessary modules for a RAID array and uses incremental
20 assembly via udev at runtime to create the devices. This hook will NOT work
21 without the udev hook included on the image.
22 HELPEOF
25 # vim: set ft=sh ts=4 sw=4 et: