Commit 386db07f authored by Natanael Copa's avatar Natanael Copa

main/lvm2: init.d dependency fixes

make sure we start after fsck and after hwdrivers and modules.
provide default config that starts lvm after mdadm-raid.

fixes #148
parent ff77079b
# 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"
# 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"
#!/sbin/runscript
depend() {
before checkfs fsck
after hwdrivers modules device-mapper
}
dm_in_proc() {
local rc=0 i=
for i in devices misc; do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment