HardenedBSD
Bastille supports HardenedBSD as an OS since it is FreeBSD based. There are some differences in how HBSD handles release names, updates, and upgrades.
Most of the Bastille commands will work with HardenedBSD, but please report any bugs you may find.
There are a number of ways in which HardenedBSD differs from FreeBSD. Most of the functionality is the same, but some things are different. See the following examples…
Bootstrap
HardenedBSD follows the STABLE branches of FreeBSD, and releases
are named X-stable, where X is the major version of a given FreeBSD
branch/release.
It also has a current release, which follows the master/current
branch for the latest FreeBSD release.
When bootstrapping a release, use the above release keywords.
Updating
To update HardenedBSD jails/releases you can do the following:
Thick Jails
Use
bastille update TARGETto update the jailUpgrade complete!
Thin Jails
See bastille update RELEASE to update thin jails, as thin
jails are based on a given release.
Releases
Use
bastille update 15-stableto update the release to the latest versionUpdate complete!
Upgrading
To upgrade HardenedBSD jails to a different (higher) release (ie; 14-stable > 15-stable) you can do the following:
Thick Jails
Use
bastille upgrade TARGET currentto upgrade the jail to thecurrentreleaseForce the reinstallation or upgrade of all installed packages (ABI change):
pkg upgrade -fwithin each jail (orbastille pkg ALL upgrade -f)Upgrade complete!
Thin Jails
Ensure the new release is bootstrapped:
bastille bootstrap 15-stableUpdate the release:
bastille update 15-stableStop the jail(s) that need to be updated.
Use
bastille upgrade TARGET 15-stableto automatically change the mount points to 15-stableStart the jail(s)
Force the reinstallation or upgrade of all installed packages (ABI change):
pkg upgrade -fwithin each jail (orbastille pkg ALL upgrade -f)Upgrade complete!
Releases
The upgrade sub-command does not support upgrading a release
to a different release. See bastille bootstrap to bootstrap
the new release.
Limitations
Bastille tries its best to determine which *BSD you are using. It is possible to mix and match any of the supported BSD distributions, but it is up to the end user to ensure the correct environment/tools when doing so. See below…
Running HardenedBSD jails/releases requires many of the tools found only in the HardenedBSD base.
Running FreeBSD jails/releases requires many of the tools found only in the FreeBSD base.