2009-10-03 10:58:22 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PREREQ=""
|
|
|
|
|
|
|
|
prereqs()
|
|
|
|
{
|
|
|
|
echo "$PREREQ"
|
|
|
|
}
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
prereqs)
|
|
|
|
prereqs
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2009-10-18 07:55:30 +02:00
|
|
|
if [ ! -x /sbin/lvm.static -o ! -x /sbin/dmsetup.static ]; then
|
2009-10-03 10:58:22 +02: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
|
|
|
|
|
2009-10-18 07:55:30 +02:00
|
|
|
copy_exec /sbin/dmsetup.static /sbin/dmsetup
|
|
|
|
copy_exec /sbin/lvm.static /sbin/lvm
|
2009-10-03 10:58:22 +02:00
|
|
|
|
|
|
|
for x in dm_mod dm_snapshot dm_mirror; do
|
|
|
|
manual_add_modules ${x}
|
|
|
|
done
|