I wonder if it is possible to delay mounting of a home directory?
Here is the background to the problem I am trying to solve:
I have two zfs disks, one rpool disk, and one zfs data disk. On the zfs data disk, I have data directories. In Solaris 11.3 there are default home directories on rpool, called Documents, Public, Downloads, etc. So I have deleted these home directories from rpool, and replaced them with symlinks. These symlinks points to the zfs data disk. So on the zfs data disk there are directories called Documents, Public, Downloads, etc. In my home directory, there are symlinks to these zfs data directories.
I also have a Linux Ubuntu partition. I have done the same thing on the Ubuntu partition. My home directory on the Ubuntu partition contains symlinks, pointing to the zfs data disk.
This means Ubuntu and Solaris shares the same data directories on the zfs data disk. I do not want to share the same home directory between Solaris and Linux, so I have not put the home directory on the zfs data disk. Because the configuration files differs from Solaris and Linux. Linux might use KDE, and Solaris might use Gnome. That will be a problem when I login if I share the same home directory between OSes. So Solaris and Linux home directories are not shared, but the data is shared via symlinks in Solaris and in Linux home directory. This way, I can work with the same data no matter which OS I boot from. I also have a VirtualBox VM data directory which I access from both Solaris and from Linux, so I can work with the same VM from both OSes, without the need to synching data.
Here is the problem. When I bootup Linux, I need to import the zfs data disk. Then I bootup Solaris instead, which makes Solaris complain because Solaris are trying to mount the home directory data folders, which points to the zfs data disk - which is mounted in Linux instead!
When I boot different OSes, I need to import the zfs disk. But then the other OS will complain because it can not mount the home directory. Is there a way to delay mounting of home directories? Then I can bootup an OS and import the zfs data disk, and after that I can manually mount the home directory.
EDIT: Adding "_netdev" in vfstab is the wrong track?
delayed file system mount? (zfs, zvol, ext4) - Ars Technica OpenForum