vp-build/srcpkgs/lvm2/files/lvm2.initramfs-hook
Juan RP b2e94e2c06 lvm2: update to 2.02.61.
--HG--
extra : convert_revision : 1474582103b3165a5393c689866f3cef7627f5cd
2010-02-17 06:21:05 +01:00

34 lines
445 B
Bash

#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
if [ ! -x /sbin/lvm -o ! -x /sbin/dmsetup ]; then
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
copy_exec /sbin/dmsetup /sbin
copy_exec /sbin/lvm /sbin
for x in dm_mod dm_snapshot dm_mirror; do
manual_add_modules ${x}
done