feature request: don't automount if canmount=noauto

Developer discussions.

feature request: don't automount if canmount=noauto

Postby webb » Mon May 31, 2021 10:57 am

I use zrep, and I mark my backups to not automount with zfs set canmount=noauto, but org.openzfsonosx.zpool-import-all.plist cares not for these things.

No urgency because easy workaround:
Code: Select all
sudo su
cd /usr/local/libexec/zfs/launchd.d
cp -a zpool-import-all.sh zpool-import-some.sh
vim zpool-import-some.sh
# implement import some
cd /Library/LaunchDaemons
sed 's/zpool-import-all\.sh/zpool-import-some.sh/' org.openzfsonosx.zpool-import-all.plist > org.openzfsonosx.zpool-import-some.plist
launchctl unload -w org.openzfsonosx.zpool-import-all.plist
launchctl load -w org.openzfsonosx.zpool-import-some.plist
Posts: 5
Joined: Mon May 17, 2021 5:20 am

Return to OpenZFS on OS X Development

Who is online

Users browsing this forum: No registered users and 1 guest