zfs: add pool import service for luks

This commit is contained in:
pulux 2015-05-02 19:51:59 +02:00
parent aa520467ca
commit 1a826b210d
3 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,5 @@
#!/bin/sh
set -e
exec 2>&1
zfs unshare -a
zfs unmount -a

View file

@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
zpool import -a || exit 1
exec chpst -b zfs-import pause

View file

@ -1,7 +1,7 @@
# Template file for 'zfs'
pkgname=zfs
version=0.6.4.1
revision=1
revision=2
wrksrc="${pkgname}-${pkgname}-${version/r/-}"
build_style=gnu-configure
configure_args="--with-config=user --sbindir=/usr/bin
@ -38,6 +38,8 @@ post_install() {
vmkdir usr/src/${pkgname}-${version/r/-}
tar xf ../clean.tar.gz -C ${DESTDIR}/usr/src/${pkgname}-${version/r/-}
scripts/dkms.mkconf -v ${version/r/-} -f ${DESTDIR}/usr/src/${pkgname}-${version/r/-}/dkms.conf -n zfs
vsv zfs-import
}
zfs-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"