ZFS with systemd

Tags: linux, zfs, systemd

I’m trying to switch from openrc to systemd on my gentoo-desktop (don’t ask why).

It’s starts easy:

  • changing profile from desktop/plasma to dektop/plasma/systemd.
  • Then everything reemerge world -uDtvaN
  • Compiling new kernel with appropriate settings.
  • creating a new initramfs with dracut --kver <kernel-version>
  • rebooting

Now it become complicated:

Systemd stucks in boot when it fails to mount zfs and switching root to the new base. After a long journey I found a workaround:

  • omit dracut-module systemd
  • adding init=/usr/lib/systemd/systemd as a kernel-parameter in grub.