i have a zfs video dataset that is mounted in my home directory,
and i want to mount it using nullfs to the video directory in a Linuxulator chroot
i can manually mount the directory from the host into the chroot
the issue is the zfs datasets are mounted later in the boot process
than the nullfs in the fstab
i tried the late option in the fstab but i think thats generally used with remote filesystems like nfs
i have Davinci Resolve in the chroot
and i would like to find a way for users to mount the video directory from the host to the chroot
so they can import and export footage from resolve directory into the video directory on the freebsd host
rather than copying files back and forth into the chroot
zfs dataset layout
create the video directory in the chroot
mount the directory from the host to the chroot
umount the mount point in the chroot
fstab on the freebsd host
mount fstab
that works
but it you reboot it fails because the nullfs is mounted earlier in the boot process that the video zfs dataset
so you are dropped to single user mode
This is the last thing i need to resolve for Davinci Resolve on Freebsd
if you'll excuse the pun
If anyone knows how to delay mounting the nullfs mount point in the fstab
until after zfs has mounted the datasets that would really help me out
i ran into the same issue trying to put the /compat/ubuntu directory in a zfs dataset
maybe noauto is what im looking for
noauto works and doesnt drop you to single user mode
freebsd fstab
only issue is you manually need to mount the directory
you get auto completion using the mount command so you dont have to type the full path
would be nice if i could get the video directory to automatically mount
and i want to mount it using nullfs to the video directory in a Linuxulator chroot
i can manually mount the directory from the host into the chroot
the issue is the zfs datasets are mounted later in the boot process
than the nullfs in the fstab
i tried the late option in the fstab but i think thats generally used with remote filesystems like nfs
i have Davinci Resolve in the chroot
and i would like to find a way for users to mount the video directory from the host to the chroot
so they can import and export footage from resolve directory into the video directory on the freebsd host
rather than copying files back and forth into the chroot
zfs dataset layout
Code:
zroot/home 285G 512G 16.3G /home
zroot/home/djwilcox 243G 512G 963M /home/djwilcox
zroot/home/djwilcox/desktop 192M 512G 132K /home/djwilcox/desktop
zroot/home/djwilcox/documents 32.8G 512G 24.3G /home/djwilcox/documents
zroot/home/djwilcox/downloads 14.5G 512G 120K /home/djwilcox/downloads
zroot/home/djwilcox/git 1001M 512G 853M /home/djwilcox/git
zroot/home/djwilcox/music 112G 512G 112G /home/djwilcox/music
zroot/home/djwilcox/pictures 2.00M 512G 540K /home/djwilcox/pictures
zroot/home/djwilcox/torrents 50.6G 512G 152K /home/djwilcox/torrents
zroot/home/djwilcox/video 4.31G 512G 2.03G /home/djwilcox/video
create the video directory in the chroot
Code:
mkdir -p /compat/ubuntu/home/djwilcox/video
mount the directory from the host to the chroot
Code:
mount -t nullfs /home/djwilcox/video /compat/ubuntu/home/djwicox/video
umount the mount point in the chroot
Code:
umount /compat/ubuntu/home/djwilcox/video
fstab on the freebsd host
Code:
# Device Mountpoint FStype Options Dump Pass#
/dev/gpt/efiboot0 /boot/efi msdosfs rw 2 2
/dev/nda0p3.eli none swap sw 0 0
# linux
proc /proc procfs rw 0 0
# mount video from host to chroot
/home/djwilcox/video /compat/ubuntu/home/djwilcox/video nullfs rw,late 0 0
mount fstab
Code:
sudo mount -al
that works
but it you reboot it fails because the nullfs is mounted earlier in the boot process that the video zfs dataset
so you are dropped to single user mode
This is the last thing i need to resolve for Davinci Resolve on Freebsd
if you'll excuse the pun
If anyone knows how to delay mounting the nullfs mount point in the fstab
until after zfs has mounted the datasets that would really help me out
i ran into the same issue trying to put the /compat/ubuntu directory in a zfs dataset
maybe noauto is what im looking for
noauto works and doesnt drop you to single user mode
freebsd fstab
Code:
# mount video from host to chroot
/home/djwilcox/video /compat/ubuntu/home/djwilcox/video nullfs rw,noauto 0 0
only issue is you manually need to mount the directory
Code:
mount /compat/ubuntu/home/djwilcox/video
you get auto completion using the mount command so you dont have to type the full path
would be nice if i could get the video directory to automatically mount