Race condition while booting systemd with zfs-root
1 minute read •
I solved a long annoying boot-problem happened in the systemd-async-boot-process.
Adding a sleeptime in /lib/systemd/system/systemd-udev-settle.service
by adding ExecStartPre=/usr/bin/sleep 5
to the [Service]
-Section, gives the system 5 sec. more time to load the zfs-module and import the pool before it tries to remount root to the real directory on disk.
[Unit]
udev Wait for Complete Device Initialization
:systemd-udev-settle.8)
manno
-udevd.service
systemd-udev-trigger.service
systemd.target
sysinit/sys
[Service]
oneshot
180
yes
/usr/bin/sleep 5
/bin/udevadm settle
I found this solution at the github.com/zfsonlinux bugtracker: ZOL 0.8 Not Loading Modules or ZPools on Boot #8885