lvm2: disable lvmetad by default; add two runit services: dmeventd and lvmetad.

This commit is contained in:
Juan RP 2015-06-01 08:29:54 +02:00
parent 72fb99a998
commit 919339eabe
3 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec dmeventd -f

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec lvmetad -f

View file

@ -1,7 +1,7 @@
# Template file for 'lvm2'
pkgname=lvm2
version=2.02.120
revision=1
revision=2
wrksrc=LVM2.${version}
build_style=gnu-configure
configure_args="--disable-selinux --enable-readline --enable-pkgconfig
@ -35,6 +35,8 @@ post_install() {
vinstall ${FILESDIR}/lvmetad.socket 644 usr/lib/systemd/system
vinstall ${FILESDIR}/lvm-on-crypt.service 644 usr/lib/systemd/system
fi
sed -i 's,\(use_lvmetad = 1\),#\1,' ${DESTDIR}/etc/lvm/lvm.conf
vsv lvmetad
}
device-mapper-devel_package() {
@ -68,6 +70,7 @@ device-mapper_package() {
ln -sf /usr/lib/systemd/system/dmeventd.socket \
${PKGDESTDIR}/usr/lib/systemd/system/sockets.target.wants/dmeventd.socket
fi
vsv dmeventd
}
}
liblvm2app-devel_package() {