zfs
zfs copied to clipboard
Late Mounting of ZFS
I've had trouble for a very long time with ZFS volumes not until user login. This has predominantly affected autologin and being unable to use user home folders and also causing iTunes and other apps that access libraries stored on ZFS.
Is there any way to force ZFS to mount earlier in the boot process such that it starts and finishes well before the login process?
It might be possible to run code at login time, using an auth plugin: https://developer.apple.com/library/archive/technotes/tn2228/_index.html#//apple_ref/doc/uid/DTS40007991 But I think they are annoying to write and install. Don't know if they're supported still either.
The normal daemons should run before as well, but if you log in quickly that might not happen in time. (Chose a better and longer password :P)
@cbreak-black If you use FileVault v2, there is no real way but a fake user to delay login ;-)
@ylluminate Well, I think you could hack in there if you disable SIP that the currently "Global Daemon" to be a "System Daemon" on startup in launchd, maybe then it gets executed a tad earlier.
instead of having a ZFS home dir, I have lots of zfs datasets mounted in my home dir. That seems to work ok. (~/Library, ~/Documents and the other "standard" directories are NOT on zfs though)
I have documents also mounted. Library not though. @ylluminate Maybe this helps: https://justinscholz.de/2018/06/15/an-extensive-zfs-setup-on-macos/