[Pkg-zfsonlinux-devel] zfs 0.6.5.4-1 and sysvinit

Aron Xu aron at debian.org
Mon Feb 22 03:52:56 UTC 2016


On Sun, Feb 21, 2016 at 10:28 AM, Craig Sanders <cas at taz.net.au> wrote:
>
> RE: https://anonscm.debian.org/cgit/pkg-zfsonlinux/zfs.git
>
>
> are these packages systemd only, or do/can they support sysvinit?
>
> if they do support it, how do i build a sysvinit version of
> zfsutils-linux?  is this documented anywhere?
>
>
>
> I built this and installed it on a few systems (all running debian sid),
> but found that it didn't automatically import my pools on reboot because
> the sysvinit /etc/init.d/ scripts were missing from the zfsutils-linux
> package.
>
> The configure scripts seem to support sysvinit, but i can't find any
> way to tell dpkg-buildpackage to build with sysvinit support. even the
> postinst script seems to have only systemd support.
>
>
> as an experiment, I tried switching one of my zfs systems to systemd.
> It failed to even boot, somehow managing to not find either my swap
> partition or my /boot partition and after an extremely annoying 1m30s
> countdown, dropped to the root password prompt and into the shell.  So
> systemd killed that system temporarily - fortunately, the rootfs was
> mounted properly so i managed to reinstall sysvinit-core and reboot.
>
> i manually copied the init.d scripts into /etc/init.d on my zfs systems
> and ran:
>
>     update-rc.d zfs-import defaults
>     update-rc.d zfs-mount defaults
>     update-rc.d zfs-zed defaults
>     update-rc.d zfs-share defaults
>
>
> but this is debian - this kind of thing should be done by the package.
>
>
> craig
>
> ps: 0.6.5.4-1 seems to be working well now that i've manually installed
> the init.d scripts and it's nice to get all the improvements (incl.
> support for 4.4 kernels) and bug-fixes since the jessie 0.6.5.2 version
> from the ZoL site.
>


The only stopper for adding LSB (sysvinit) support is manpower, I
dropped the support to make things easier for doing an initial upload
for the archive. systemd support is tested and used in production by
myself on Jessie systems without problem, though. If there is people
willing to give a hand on maintaining LSB support I'm happy to carry
it.

Best,
Aron



More information about the Pkg-zfsonlinux-devel mailing list