2009-10-03 08:58:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PREREQ=""
|
|
|
|
|
|
|
|
prereqs()
|
|
|
|
{
|
|
|
|
echo "$PREREQ"
|
|
|
|
}
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
prereqs)
|
|
|
|
prereqs
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2010-02-17 05:21:05 +00:00
|
|
|
if [ ! -x /sbin/lvm -o ! -x /sbin/dmsetup ]; then
|
2009-10-03 08:58:22 +00:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
|
|
|
|
|
|
if [ -e /etc/lvm/lvm.conf ]; then
|
|
|
|
mkdir -p ${DESTDIR}/etc/lvm
|
|
|
|
cp /etc/lvm/lvm.conf ${DESTDIR}/etc/lvm/
|
|
|
|
fi
|
|
|
|
|
2012-02-06 15:32:31 +00:00
|
|
|
copy_exec /usr/sbin/dmsetup /sbin
|
|
|
|
copy_exec /usr/sbin/lvm /sbin
|
2009-10-03 08:58:22 +00:00
|
|
|
|
|
|
|
for x in dm_mod dm_snapshot dm_mirror; do
|
|
|
|
manual_add_modules ${x}
|
|
|
|
done
|