Dual boot: how to automatically mount ZFS pool in both OS's
Posted: Tue Nov 27, 2018 7:04 am
I have a machine which dual boots macOS X and Linux. When I boot into Linux, my zfs pool does not get imported automatically; I have to run "zpool import -f myPoolName" first.
I know the correct way to avoid this problem is to export the pool before changing OS's, but I'm never going to remember to do this. I would like to avoid the extra step. And as far as I know, there's no way to tell macOS to automatically run a script on shut down.
Is there a way to remove this safety check? Because I'm dual booting on a single machine, I am not in danger of accidentally importing a pool on two systems simultaneously.
I know the correct way to avoid this problem is to export the pool before changing OS's, but I'm never going to remember to do this. I would like to avoid the extra step. And as far as I know, there's no way to tell macOS to automatically run a script on shut down.
Is there a way to remove this safety check? Because I'm dual booting on a single machine, I am not in danger of accidentally importing a pool on two systems simultaneously.