lvm2: fixed initramfs-tools hook due to switch to /usr.

This commit is contained in:
Juan RP 2012-04-20 16:59:27 +02:00
parent 3e8a12fa06
commit b1705ed6a0
3 changed files with 4 additions and 2 deletions

View file

@ -6,9 +6,10 @@ long_desc="
for the kernel device-mapper and its required library, libdevmapper." for the kernel device-mapper and its required library, libdevmapper."
replaces="lvm2-device-mapper>=0" replaces="lvm2-device-mapper>=0"
revision=1
do_install() { do_install() {
vmove "usr/sbin/dm*" sbin vmove "usr/sbin/dm*" usr/sbin
vmove "usr/lib/libdevmapper.so*" usr/lib vmove "usr/lib/libdevmapper.so*" usr/lib
vmove "usr/share/man/man8/dm*" usr/share/man/man8 vmove "usr/share/man/man8/dm*" usr/share/man/man8
} }

View file

@ -14,7 +14,7 @@ prereqs)
;; ;;
esac esac
if [ ! -x /sbin/lvm -o ! -x /sbin/dmsetup ]; then if [ ! -x /usr/sbin/lvm -o ! -x /usr/sbin/dmsetup ]; then
exit 0 exit 0
fi fi

View file

@ -1,6 +1,7 @@
# Template file for 'lvm2' # Template file for 'lvm2'
pkgname=lvm2 pkgname=lvm2
version=2.02.95 version=2.02.95
revision=1
wrksrc=LVM2.${version} wrksrc=LVM2.${version}
distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz" distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz"
build_style=gnu-configure build_style=gnu-configure