Anything to make the GUI easier to deal with is a good thing. Just be careful with the terminology, you don't want to scare off any potential users. Make the labels easy to comprehend for those that aren't FreeBSD-savvy. Personally, I would add a box somewhere where the user could select data shares on their host system that would get mounted automatically on the jail through nullfs, just to avoid all of the confusion of permissions and mounting and filesystems. (Most people have no idea what an fstab is... When I told my wife that I needed to fix the fstab for my jail, her thoughts went to "Orange is the new black" where people shanked each other in the lunch room... )JoseMR wrote: ↑18 Dec 2019 14:28Hello, you can add nullfs mounts from Bastille Manager under: [Extensions > Bastille > Utilities > Fstab], or manually, and both directories source/target must exist, failing to do so will prevent the jail from starting as expected, also if this was done with the jail already started the user may need to restart the jail in order to mount it.
Absolutely nothing to do with the filesystem, maybe I should add an auto-mount option if the user added nullfs entries through the GUI with the jail already started, so no jail reboot will be required.
So, I'm guessing that the original file system of the host has no impact on the mounting of folders to the jail? This should work then in an fstab?JoseMR wrote: ↑18 Dec 2019 14:28Enabling ZFS in Bastille Manager is a very first step and this cannot be done after you already bootstrapped/created jails since the directories are already created, and ZFS will create datasets instead, so either start over or manually migrating this directories into datasets which may be a hassle for newcomers.
Also ZFS is intended for advanced/granular containers administration i.e. snapshots, clones, zfs send/recv etc, also I don't recommend it for USB sticks so you can skip this feature.
Code: Select all
/volumes/Stockholm /mnt/jaildisk/extensions/bastille/jails/jail1/root/volumes/Stockholm/ nullfs rw 0 0