summaryrefslogtreecommitdiff
path: root/core/mdadm/mdadm_udev_install
blob: 9fc161624d20c79dcf48c05373e846ec0c4ef428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}