lvm2: improve the rc service and initramfs-tools hook, bumprev.

--HG--
extra : convert_revision : 6cbf65693e39b4841ddd2e4b68454e69c8dac1b9
This commit is contained in:
Juan RP 2010-03-01 10:22:56 +01:00
parent 9f1ef0ac66
commit 350dc28872
3 changed files with 5 additions and 3 deletions

View file

@ -21,8 +21,8 @@ esac
modprobe -q dm-mod >/dev/null 2>&1
if [ -e /sys/class/misc/device-mapper ]; then
echo "Scanning for Logical Volumes..."
eval /sbin/lvm vgscan --ignorelockingfailure
/sbin/lvm vgscan --ignorelockingfailure
echo "Activating Logical Volumes..."
eval /sbin/lvm vgchange --ignorelockingfailure -ay
/sbin/lvm vgchange --ignoremonitoring --ignorelockingfailure -ay
fi
exit $?

View file

@ -10,6 +10,7 @@ depend()
start()
{
ebegin "Deactivating LVM volumes"
lvm vgchange --ignorelockingfailure -an 2>&1 >/dev/null
lvm vgchange --ignoremonitoring --ignorelockingfailure \
-an >/dev/null 2>&1
eend $?
}

View file

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