Hi! No worries about necro anything, it’s a valid question. And a bit confusing to figure out!
What you do is, you don’t have an explicit mountpoint for the home dataset in each of your operating systems at all. You simply nest the home dataset for each operating system as a child of the root dataset for that OS.
So, let’s return to that diagram earlier:
pool
|---ROOT
|---Ubuntu
| |---home
|
|---Fedora
|---home
If you boot Fedora, then pool/ROOT/Fedora
gets mounted (by ZFSBootMenu) on /
. This, in turn, means that pool/ROOT/Fedora/home
gets mounted on /home, not because it has an explicitly set mountpoint (it doesn’t!) but because it’s automatically mounted directly beneath /pool/ROOT/Fedora
as its child dataset.
Similarly, if you boot Ubuntu, ZBM mounts pool/ROOT/Ubuntu
as /
, and therefore /pool/ROOT/Ubuntu/home
gets mounted beneath it as /home
.
When you boot Fedora, Ubuntu’s datasets aren’t mounted at all, anywhere (unless you explicitly mount them at the command line temporarily) and vice versa.
This is in contrast to the ZBM-documentation-suggested method of keeping a separate home
dataset under pool/home
with an explictly ZFS-set mountpoint of /home
. Doing it that way means you have the same “home” dataset regardless of which OS you boot, which can lead to problems, which is why I’m recommending not doing it their way in the first place.
When and why MIGHT you want /home to be the same dataset, no matter which OS you boot? Well, let’s say you are running Ubuntu 22.04, and you want to upgrade it to 24.04. You can clone your existing Ubuntu 22.04 root into a new dataset, boot from that, and upgrade it without affecting your /home at all, or having to maintain two separate versions of /home. This appeals to a lot of folks.
With that said, I wouldn’t personally recommend doing that either. While it’s a lot LESS likely for your home directory to get you into trouble if shared between two versions of Ubuntu, it can absolutely still happen–what if your upgraded apps in your upgraded 22.04 version of Ubuntu rewrite the dotfiles they keep under your home directory, then you decide you actually need to go back to 22.04? Now you may have severely broken applications that don’t understand directives in their own dotfiles, with no clear and simple path back.