summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/lvm2/APKBUILD7
-rw-r--r--main/lvm2/lvm.confd5
-rw-r--r--main/lvm2/lvm.initd5
3 files changed, 15 insertions, 2 deletions
diff --git a/main/lvm2/APKBUILD b/main/lvm2/APKBUILD
index d99391740..4c7881e0d 100644
--- a/main/lvm2/APKBUILD
+++ b/main/lvm2/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lvm2
pkgver=2.02.48
-pkgrel=1
+pkgrel=2
pkgdesc="Logical Volume Manager 2 utilities"
url="http://sourceware.org/lvm2/"
license="GPL"
@@ -9,6 +9,7 @@ depends=
makedepends="readline-dev"
source="ftp://sources.redhat.com/pub/$pkgname/LVM2.$pkgver.tgz
lvm.initd
+ lvm.confd
"
subpackages="$pkgname-dev $pkgname-doc device-mapper:dm"
@@ -30,6 +31,7 @@ build () {
install -d "$pkgdir"/etc/lvm/archive "$pkgdir"/etc/lvm/backup
install -Dm755 "$srcdir"/lvm.initd "$pkgdir"/etc/init.d/lvm
+ install -Dm644 "$srcdir"/lvm.confd "$pkgdir"/etc/conf.d/lvm
}
dm() {
@@ -40,4 +42,5 @@ dm() {
}
md5sums="0d24c2709f439eeca36261e5cea68330 LVM2.2.02.48.tgz
-e60d88f78eedb9c1252deb5b9b9b978b lvm.initd"
+6f65f902cf19f144a42b8d6aceadf395 lvm.initd
+ec36d5fe4561220304e406c5c797e71f lvm.confd"
diff --git a/main/lvm2/lvm.confd b/main/lvm2/lvm.confd
new file mode 100644
index 000000000..9d150f6ef
--- /dev/null
+++ b/main/lvm2/lvm.confd
@@ -0,0 +1,5 @@
+# LVM should normally only be started after mdadm-raid is available
+# this is because LVM physical volumes are very often MD devices.
+
+rc_after="mdadm-raid"
+
diff --git a/main/lvm2/lvm.initd b/main/lvm2/lvm.initd
index 022cbb1e0..f077d7f1d 100644
--- a/main/lvm2/lvm.initd
+++ b/main/lvm2/lvm.initd
@@ -1,5 +1,10 @@
#!/sbin/runscript
+depend() {
+ before checkfs fsck
+ after hwdrivers modules device-mapper
+}
+
dm_in_proc() {
local rc=0 i=
for i in devices misc; do