For some reason zfs is mounting file systems in wrong order. When I create new zfs filesystem it is mounted correctly:
Everything is fine until
I'm trying to understand what's going on here and where I made a mistake. Does anybody have thoughts about this setup?
Code:
[root@system ~]# zfs create zroot/usr/jails
[root@system ~]# zfs set mountpoint=/usr/jails zroot/usr/jails
[root@system ~]# mount
zroot on / (zfs, local, nfsv4acls)
devfs on /dev (devfs)
zroot/tmp on /tmp (zfs, local, nosuid, nfsv4acls)
zroot/usr on /usr (zfs, local, nfsv4acls)
[...]
zroot/usr/jails on /usr/jails (zfs, local, nfsv4acls)
[root@system ~]#
Everything is fine until
reboot
. Seems zfs mount -a
mounts my new fs before /usr is mounted therefore it gets overmounted.
Code:
[root@pigwalk ~]# mount
zroot on / (zfs, local, nfsv4acls)
devfs on /dev (devfs)
zroot/usr/jails on /usr/jails (zfs, local, nfsv4acls)
zroot/tmp on /tmp (zfs, local, nosuid, nfsv4acls)
zroot/usr on /usr (zfs, local, nfsv4acls)
[...]
[root@system ~]#
I'm trying to understand what's going on here and where I made a mistake. Does anybody have thoughts about this setup?