On my laptop I have a number of non-Solaris filesystems that have useful things on them. I have an ext3 filesystem from my Linux/Ubuntu install, a fat32 filesystem to transfer things between Windows and other OSes and a NTFS for Vista. In the past when I've added these things to vfstab it created problems with OpenSolaris booting. Now I know I should really debug that problem, but I'm lazy...
In the past I hacked my .bashrc to handle the mounting, but this is a terrible solution. I have since come up with a slightly less terrible solution that has the added benefit of me digging into SMF. So I created a simple SMF service that would mount these filesystems at boot.
So the first part is to craft a config. I put the manifest in
/var/svc/manifest/system/filesystem/pete-fs.xml
And also create a
script that will be run as part of this service. I placed the script in
/lib/svc/method/fs-pete
All that was left was to import the manifest:
pfexec svccfg import /var/svc/manifest/system/filesystem/pete-fs.xml
So now that means my non-Solaris filesystems are mounted at boot no problems at all. I do still need to dig into the vfstab problem though, but that's likely to be on a different day..