void-packages/templates/lvm2/files/lvm2.initramfs-hook
Juan RP 39e6cb5eff lvm2: remove vgchange binary from the initramfs hook.
Bump revision.

--HG--
extra : convert_revision : 371fd0b6af8b1f7eb18467a0e171bec407823f0b
2009-10-07 02:39:06 +02:00

33 lines
411 B
Bash

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