I've never tried it myself, but the
iocage fetch
command has a
--branch option.
Code:
➜ ~ iocage fetch --help
Usage: iocage fetch [OPTIONS] [PROPS]...
Fetch a version of FreeBSD for jail usage or a preconfigured plugin.
Options:
-h, --http No-op flag for backwards compat
-f, --file Use a local file directory for root-dir instead of HTTP
-F, --files TEXT Specify the files to fetch from the mirror.
-s, --server TEXT Server to fetch from.
-g, --git_repository TEXT Git repository to use to fetch plugin.
-k, --keep_jail_on_failure Keep jails on failure
-u, --user TEXT The user to use.
-p, --password TEXT The password to use.
-a, --auth TEXT Authentication method for HTTP fetching. Valid values: basic, digest
-V, --verify / -NV, --noverify Enable or disable verifying SSL cert for HTTP fetching.
-r, --release TEXT The FreeBSD release to fetch.
-P, --plugin-name TEXT Supply a plugin name for --plugins to fetch or use a auto completed filename for --plugin-name.
Also accepts full path for a plugin file.
--plugins List all available plugins for creation.
-c, --count TEXT Designate a number of plugin type jails to create.
-d, --root-dir TEXT Root directory containing all the RELEASEs.
-U, --update / -NU, --noupdate Decide whether or not to update the fetch to the latest patch level.
-E, --eol / -NE, --noeol Enable or disable EOL checking with upstream.
-n, --name TEXT Specify which jail name to use. Leave empty for default selection based on --plugin-name.
--accept / --noaccept Accept the plugin's LICENSE agreement.
-O, --official Lists only official plugins.
--branch TEXT Select a different plugin branch (for development)
-C, --thickconfig Do not use inheritable configuration with plugins
-S, --proxy TEXT Provide proxy to use for creating jail
--help Show this message and exit.