Commit dba5a787 authored by Samir's avatar Samir
Browse files

add systemd units to lvm2

parent b89c5b3a
......@@ -6,7 +6,7 @@
pkgbase=lvm2
pkgname=('lvm2' 'device-mapper')
pkgver=2.02.95
pkgrel=1
pkgrel=2
arch=('i686' 'x86_64')
url="http://sourceware.org/lvm2/"
license=('GPL2' 'LGPL2.1')
......@@ -14,10 +14,12 @@ groups=('base')
source=(ftp://sources.redhat.com/pub/lvm2/LVM2.${pkgver}.tgz
lvm2_install
lvm2_hook
lvm.service
11-dm-initramfs.rules)
md5sums=('bd470a802046c807603618a443732ea7'
'd2a2376dd247ae15044dbc5f28479b23'
'14b42c38324160d79b63743b62cb45c4'
'a9019147f885ab81ce0f582a2d3f2b90'
'69e40679cd8b3658bfc619e48baae125')
build() {
......@@ -59,4 +61,7 @@ package_lvm2() {
# mkinitcpio hook
install -D -m644 "${srcdir}/lvm2_hook" "${pkgdir}/usr/lib/initcpio/hooks/lvm2"
install -D -m644 "${srcdir}/lvm2_install" "${pkgdir}/usr/lib/initcpio/install/lvm2"
# install systemd unit
install -Dm 644 "$srcdir/lvm.service" "$pkgdir/usr/lib/systemd/system/lvm.service"
}
[Unit]
Description=LVM activation
DefaultDependencies=no
Requires=udev-settle.service
After=udev-settle.service
Before=basic.target shutdown.target
Conflicts=shutdown.target
[Service]
ExecStart=/sbin/vgchange --sysinit --available y
Type=oneshot
TimeoutSec=0
RemainAfterExit=yes
[Install]
WantedBy=basic.target
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