summaryrefslogtreecommitdiff
path: root/testing/mdadm/mdadm_udev_install
blob: be653fc743a308e02375e6e89e4d0365fc138689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

build() {
    MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-")"

    # check if a custom mdadm.conf exists
    if grep -qw ^ARRAY "$BASEDIR/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 "mdadm"
    add_file "/usr/lib/udev/rules.d/64-md-raid.rules"
}

help() {
  cat <<HELPEOF
  This hook loads raid arrays with udev.
HELPEOF
}

# vim: set ft=sh ts=4 sw=4 et: