lvm: install lvm mirror and snaphot libs

master
Harald Hoyer 2010-06-10 13:51:40 +02:00
parent 2c24ee9a72
commit edcd2c5eb7
1 changed files with 11 additions and 0 deletions

View File

@ -16,3 +16,14 @@ inst_rules 10-dm.rules 13-dm-disk.rules 95-dm-notify.rules 11-dm-lvm.rules

inst "$moddir/lvm_scan.sh" /sbin/lvm_scan
inst_hook cmdline 30 "$moddir/parse-lvm.sh"


if ldd $(which lvm) | grep -q lib64; then
LIBDIR="/lib64"
else
LIBDIR="/lib"
fi

for i in $(ls /{usr,}/$LIBDIR/libdevmapper-event-lvm*.so 2>/dev/null); do
dracut_install $i
done