2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2009-12-11 11:32:41 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
2009-03-28 14:07:42 +01:00
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2009-03-28 14:07:42 +01:00
|
|
|
{
|
2012-05-27 11:53:08 +02:00
|
|
|
add_checked_modules -f 'dm-' 'drivers/md/*'
|
2013-05-22 10:01:52 +02:00
|
|
|
add_binary "mdassemble"
|
|
|
|
add_binary "mdadm"
|
|
|
|
add_binary "mdmon"
|
2013-08-21 09:02:19 +02:00
|
|
|
# add custom archboot mdadm.conf to avoid mdadm handling isw and ddf metadata devices
|
|
|
|
# which are also covered by dmraid
|
|
|
|
add_file "/usr/share/archboot/mdadm/etc/mdadm.conf" "/etc/mdadm.conf"
|
2009-03-28 14:07:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
2013-08-21 09:02:19 +02:00
|
|
|
This hook adds mdadm to arch boot image.
|
2009-03-28 14:07:42 +01:00
|
|
|
HELPEOF
|
|
|
|
}
|