[Pkg-zfsonlinux-devel] Bug#826994: patch
Håkan Johansson
f96hajo at chalmers.se
Thu Jan 5 17:50:32 UTC 2017
Dear Maintainers,
I am interested in getting the startup scripts /etc/init.d/zfs- into the
packages(s).
Attached is a first patch attempt. (I am completely new to debian
packaging...)
It has been (lightly) tested on two machines: after update from the ZoL
packages to jessie-backports they no longer imported/mounted the ZFS
filesystems after reboot. They do with packages compiled with the patch.
Since the scripts are already in the source package, the only addition is
a fix for zfs-zed.in (lintian warned without $local_fs), the install
rules are lifted from zfs-pkg [1].
There are two known issues:
one lintian warning for each script, e.g.:
W: zfsutils-linux: init.d-script-does-not-source-init-functions etc/init.d/zfs-import
as far as I can see, zfs-functions does include /lib/lsb/init-functions,
but lintian does not know this. How to fix this? lintian override?
the zfs-share startup script depends on zfs-zed, but as zfs-zed has been
split to a separate package, but depending on zfsutils-linux this is not
installed yet when zfsutils-linux tries to start zfs-share and thus fails.
How to handle that? (usr/lib/systemd/system/zfs-share.service is in
zfsutils-linux so putting /etc/init.d/zfs-share in zfs-zed does not seem
right...)
Cheers,
Håkan
[1] https://github.com/zfsonlinux/pkg-zfs/blob/master/debian/jessie/debian/rules
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_1_826994.diff
Type: text/x-diff
Size: 2515 bytes
Desc:
URL: <http://lists.alioth.debian.org/pipermail/pkg-zfsonlinux-devel/attachments/20170105/5112eaae/attachment.diff>
More information about the Pkg-zfsonlinux-devel
mailing list