Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c5a719f6333dbde92cf6680861872a0af0b78271

commit c5a719f6333dbde92cf6680861872a0af0b78271
Author: Michel Hermier <herm...@frugalware.org>
Date:   Wed Jul 27 11:37:16 2011 +0200

lvm2-2.02.86-2-i686

* Use lvm.service from gentoo, more advanced and more reliable for me
than the simple/dummy one we provide.

diff --git a/source/apps/lvm2/FrugalBuild b/source/apps/lvm2/FrugalBuild
index 25b9649..ff6fd19 100644
--- a/source/apps/lvm2/FrugalBuild
+++ b/source/apps/lvm2/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=lvm2
pkgver=2.02.86
-pkgrel=1
+pkgrel=2
pkgdesc="Logical Volume Manager 2 utilities"
url="http://sources.redhat.com/lvm2/";
depends=('udev')
diff --git a/source/apps/lvm2/lvm.service b/source/apps/lvm2/lvm.service
index 4215d0e..ddb6e44 100644
--- a/source/apps/lvm2/lvm.service
+++ b/source/apps/lvm2/lvm.service
@@ -1,13 +1,18 @@
[Unit]
-Description=LVM activation
+Description=Linux Volume Manager
DefaultDependencies=no
After=udev-settle.service
-Before=local-fs.target
-ConditionPathExists=/sbin/vgchange
+Before=local-fs.target shutdown.target

[Service]
-ExecStart=/sbin/vgchange --sysinit -a y
Type=oneshot
+RemainAfterExit=yes
+ExecStart=/sbin/pvscan --ignorelockingfailure
+ExecStart=/sbin/vgscan --mknodes --ignorelockingfailure
+ExecStart=/sbin/vgchange --sysinit -a ly
+ExecStop=/sbin/lvchange --sysinit -a ln $(/sbin/vgs -o vg_name --noheadings 
--nosuffix 2> /dev/null)
+ExecStop=/sbin/lvchange --sysinit -a ln
+ExecStop=/sbin/vgchange --sysinit -a ln

[Install]
WantedBy=sysinit.target
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to