Skip to content

glessard/zfs-pool-importer

Repository files navigation

zfs-pool-importer

An improved tool to automatically import ZFS pools from OpenZFS when macOS starts up.

The advantages over the shell script are that this command shows up by itself in the list of programs that have requested full disk access, and that /bin/bash will not be required to have full disk access.

What's required for zfs-pool-importer to request full disk access to happen is that it must be launched once; the operation that requires full disk access will fail, and zfs-pool-importer will appear in the list at "System Preferences -> Security & Privacy -> Full Disk Access", unchecked. The user can then choose to enable it. The installation script in this repository performs the necessary launch.

There is no real difference in functionality compared to the shell script, though the log output is slightly different and, as described, the experience is clearer.

To install

$ git clone https://github.com/glessard/zfs-pool-importer
$ cd zfs-pool-importer
$ sudo ./install.sh

Additionally, you may want to disable the old shell script by removing zpool-import-all's launchd file:

$ sudo rm -f /Library/LaunchDaemons/org.openzfsonosx.zpool-import-all.plist

About

Improved tool to import ZFS pools at mac startup

Resources

Stars

Watchers

Forks

Packages

No packages published