zfs: add pool import service for luks
This commit is contained in:
parent
aa520467ca
commit
1a826b210d
5
srcpkgs/zfs/files/zfs-import/finish
Executable file
5
srcpkgs/zfs/files/zfs-import/finish
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
exec 2>&1
|
||||
zfs unshare -a
|
||||
zfs unmount -a
|
4
srcpkgs/zfs/files/zfs-import/run
Executable file
4
srcpkgs/zfs/files/zfs-import/run
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
zpool import -a || exit 1
|
||||
exec chpst -b zfs-import pause
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user