zfs icon indicating copy to clipboard operation
zfs copied to clipboard

Late Mounting of ZFS

Open ylluminate opened this issue 5 years ago • 4 comments

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?

ylluminate avatar Mar 24 '19 15:03 ylluminate

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 avatar Mar 24 '19 16:03 cbreak-black

@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.

JMoVS avatar Mar 24 '19 20:03 JMoVS

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)

cbreak-black avatar Mar 24 '19 22:03 cbreak-black

I have documents also mounted. Library not though. @ylluminate Maybe this helps: https://justinscholz.de/2018/06/15/an-extensive-zfs-setup-on-macos/

JMoVS avatar Mar 24 '19 22:03 JMoVS