diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 17:36:10 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 17:36:10 (GMT) |
commit | 9bf6461124e215b2cbff57dd0f514dac5dfc0174 (patch) | |
tree | 214ec9084a8122b167d316c49f34072d25c3a008 /abs/core/mdadm/mdadm_udev_install | |
parent | d959d709bde5168e9d8bbfba7affd622ced1e6b4 (diff) | |
download | linhes_pkgbuild-9bf6461124e215b2cbff57dd0f514dac5dfc0174.zip linhes_pkgbuild-9bf6461124e215b2cbff57dd0f514dac5dfc0174.tar.gz linhes_pkgbuild-9bf6461124e215b2cbff57dd0f514dac5dfc0174.tar.bz2 |
mdadm 3.2.5
Diffstat (limited to 'abs/core/mdadm/mdadm_udev_install')
-rw-r--r-- | abs/core/mdadm/mdadm_udev_install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/abs/core/mdadm/mdadm_udev_install b/abs/core/mdadm/mdadm_udev_install new file mode 100644 index 0000000..f6f5de4 --- /dev/null +++ b/abs/core/mdadm/mdadm_udev_install @@ -0,0 +1,24 @@ +#!/bin/bash + +build() { + add_checked_modules -f 'dm-' 'drivers/md/*' + + # 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 the necessary modules for a RAID array and uses incremental +assembly via udev at runtime to create the devices. This hook with NOT work +without the udev hook included on the image. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: |