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

Craig Sanders cas at taz.net.au
Sun Feb 21 02:28:54 UTC 2016


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.

-- 
craig sanders <cas at taz.net.au>



More information about the Pkg-zfsonlinux-devel mailing list