vp-build/srcpkgs/lvm2/files/lvm2.initramfs-hook
Juan RP 755be11eb5 lvm2: use shared bins in the initramfs hook. bumprev.
--HG--
extra : convert_revision : 9f21ee631d33b7bc77e4983306ab9fe958875e2b
2009-12-20 21:19:44 +01:00

34 lines
471 B
Bash

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