Comment 12 for bug 1624540

Revision history for this message
Richard Laager (rlaager) wrote :

@pitti, the ID_FS_TYPE is zfs_member, not zfs. The service is, as you listed, zed.service. Modifying your rule then is:

ACTION!="remove", SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="zfs_member", ENV{SYSTEMD_WANTS}+="zed.service"

However, if zed.service is going to exit if there is no pool imported, this udev rule may not help. The udev event is going to fire before the pool is imported.

@stgraber, running zed is less important for loopback devices. So between that and catching it on reboot, we might be "close enough".