-c dir
Keep downloaded packages in dir. The package directory hierarchy will be re-created under this root allowing for subsequent fetches with dir as the pkg_dir.
-d devs
Specify a device profile to build in jail_dir. Creates all devices necessary for common services. This may be one of base, all, ssh, https, or http. The all option creates devices for all service options.
-s sets
Download an alternate set of packages. The default is base, etc, and man.
pkg_dir
Absolute URI of packages. May be any schema supported by
ftp(1). This is the base root of the package directory hierarchy.
jail_dir
Prison root. Sets are unpacked into this directory with the permissions preserved from the archive.
The
mkjail script requires superuser permissions in order to operate, as it calls
mknod(1) and other superuser tools.
This script can also be site-configured by also specifying
site and/or
sitelocal with the
-s flag. This will cause siteXY.tgz and/or siteXY-basename.tgz to be extracted, where basename is the jail directory's path name (e.g., foo for /jails/foo).
If the
/install.site script is specified in the jail directory, then it will be automatically executed in a chroot of the jail directory.
If
pkg_dir isn't specified,
mkjail assumes that it's being called after an initial installation. This changes the argument behaviour: the
-d flag, to create devices, will clear the device directory beforehand. If
-d isn't specified, the
install.site script is (re-)executed and
mkjail exits.