#!/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 "/usr/bin/mdadm" add_file "/usr/lib/udev/rules.d/63-md-raid-arrays.rules" add_file "/usr/lib/udev/rules.d/64-md-raid-assembly.rules" } help() { cat <