diff options
author | maximilian attems <maks@debian.org> | 2005-10-24 10:06:15 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2005-10-24 10:06:15 +0200 |
commit | ab1f8ff4ccf955184a61d1dde6a5891c790b864e (patch) | |
tree | 4368f7e1f6f09f7b91ad33530f6d51d30453f907 /hooks | |
parent | 3c777488c38d22c88ca9ca0547e48173aeee1fa7 (diff) | |
download | initramfs-tools-ab1f8ff4ccf955184a61d1dde6a5891c790b864e.tar.gz initramfs-tools-ab1f8ff4ccf955184a61d1dde6a5891c790b864e.zip |
add hooks/md with the needed bits.
next step will be to remove deps.
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/hooks/md b/hooks/md new file mode 100755 index 0000000..c06b46b --- /dev/null +++ b/hooks/md @@ -0,0 +1,28 @@ +#!/bin/sh + +PREREQ="" + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +prereqs) + prereqs + exit 0 + ;; +esac + +if [ ! -x /sbin/mdadm ]; then + exit 0 +fi + +. /usr/share/initramfs-tools/hook-functions + +cp /sbin/mdadm "${DESTDIR}/sbin" +cp /sbin/mdrun "${DESTDIR}/sbin" + +for x in md raid0 raid1 raid5 raid6; do + manual_add_modules ${x} +done |