I recently configured a ubuntu jail as mentioned on the official guide.
The jail needed access to a few things on an external hard drive - and the hard drive also, for convenience, had to stay connected to the host.
The way I did this was to mount using `nullfs` using :
1)
followed by
2)
Note - the order is important - you wouldn't have access for the jail if you did 2 before 1
Is this the correct way for such an arrangement? or is this too hacky?
The jail needed access to a few things on an external hard drive - and the hard drive also, for convenience, had to stay connected to the host.
The way I did this was to mount using `nullfs` using :
1)
sudo mount -t ext2fs /dev/nvd0p1 /mnt/
(this would mount the drive to /mnt for the host)followed by
2)
sudo mount_nullfs /mnt /compat/ubuntu/mnt
(this would give access to the jail from the host by mounting the already mounted to the /mnt of the jail)Note - the order is important - you wouldn't have access for the jail if you did 2 before 1
Is this the correct way for such an arrangement? or is this too hacky?