Compare commits
3 Commits
osrelease_
...
readthedoc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94656350a1 | ||
|
|
dc6e755c2b | ||
|
|
8906e491d0 |
@@ -3,5 +3,7 @@ version: 2
|
|||||||
sphinx:
|
sphinx:
|
||||||
configuration: docs/conf.py
|
configuration: docs/conf.py
|
||||||
|
|
||||||
python:
|
build:
|
||||||
version: 3.11
|
os: "ubuntu-22.04"
|
||||||
|
tools:
|
||||||
|
python: "3.11"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ release version as the argument.
|
|||||||
|
|
||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
|
|
||||||
ishmael ~ # bastille bootstrap 12.4-RELEASE [update]
|
ishmael ~ # bastille bootstrap 14.0-RELEASE [update]
|
||||||
ishmael ~ # bastille bootstrap 13.2-RELEASE [update]
|
ishmael ~ # bastille bootstrap 13.2-RELEASE [update]
|
||||||
|
|
||||||
To `bootstrap` a HardenedBSD release, run the bootstrap sub-command with the
|
To `bootstrap` a HardenedBSD release, run the bootstrap sub-command with the
|
||||||
@@ -43,6 +43,21 @@ download the requested release. For each requested release, `bootstrap` will
|
|||||||
download the base.txz. These files are verified (sha256 via MANIFEST file)
|
download the base.txz. These files are verified (sha256 via MANIFEST file)
|
||||||
before they are extracted for use.
|
before they are extracted for use.
|
||||||
|
|
||||||
|
EOL Releases
|
||||||
|
------------
|
||||||
|
|
||||||
|
It is sometimes necessary to run end-of-life releases for testing or legacy
|
||||||
|
application support. Dy default Bastille will only install supported releases
|
||||||
|
but you can bootstrap EOL / unsupported releases with a simple trick.
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
ishmael ~ # export BASTILLE_URL_FREEBSD=http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/
|
||||||
|
ishmael ~ # bastille bootstrap 11.2-RELEASE
|
||||||
|
|
||||||
|
By overriding the BASTILLE_URL_FREEBSD variable you can now bootstrap archived
|
||||||
|
releases from the FTP archive.
|
||||||
|
|
||||||
Tips
|
Tips
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|||||||
12
docs/conf.py
12
docs/conf.py
@@ -12,9 +12,9 @@ copyright = '2018-2023, Christer Edwards'
|
|||||||
author = 'Christer Edwards'
|
author = 'Christer Edwards'
|
||||||
|
|
||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
version = '0.10.20231013'
|
version = '0.10.20231125'
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = '0.10.20231013-beta'
|
release = '0.10.20231125-beta'
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
@@ -26,10 +26,10 @@ templates_path = ['_templates']
|
|||||||
|
|
||||||
source_suffix = ['.rst', '.md']
|
source_suffix = ['.rst', '.md']
|
||||||
|
|
||||||
from recommonmark.parser import CommonMarkParser
|
#from recommonmark.parser import CommonMarkParser
|
||||||
source_parsers = {
|
#source_parsers = {
|
||||||
'.md': CommonMarkParser,
|
# '.md': CommonMarkParser,
|
||||||
}
|
#}
|
||||||
|
|
||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
language = None
|
language = None
|
||||||
|
|||||||
@@ -473,6 +473,11 @@ if [ -n "${OPTION}" ] && [ "${OPTION}" != "${HW_MACHINE}" ] && [ "${OPTION}" !=
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## allow override bootstrap URLs via environment variables
|
||||||
|
[ -n ${BASTILLE_URL_FREEBSD} ] && bastille_url_freebsd="${BASTILLE_URL_FREEBSD}"
|
||||||
|
[ -n ${BASTILLE_URL_HARDENEDBSD} ] && bastille_url_hardenedbsd="${BASTILLE_URL_HARDENEDBSD}"
|
||||||
|
[ -n ${BASTILLE_URL_MIDNIGHTBSD} ] && bastille_url_midnightbsd="${BASTILLE_URL_MIDNIGHTBSD}"
|
||||||
|
|
||||||
## Filter sane release names
|
## Filter sane release names
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
2.[0-9]*)
|
2.[0-9]*)
|
||||||
@@ -491,7 +496,7 @@ case "${1}" in
|
|||||||
;;
|
;;
|
||||||
*-RELEASE|*-release|*-RC[1-9]|*-rc[1-9]|*-BETA[1-9])
|
*-RELEASE|*-release|*-RC[1-9]|*-rc[1-9]|*-BETA[1-9])
|
||||||
## check for FreeBSD releases name
|
## check for FreeBSD releases name
|
||||||
NAME_VERIFY=$(echo "${RELEASE}" | grep -iwE '^([1-9]{2,2})\.[0-9](-RELEASE|-RC[1-9]|-BETA[1-9])$' | tr '[:lower:]' '[:upper:]')
|
NAME_VERIFY=$(echo "${RELEASE}" | grep -iwE '^([0-9]{1,2})\.[0-9](-RELEASE|-RC[1-9]|-BETA[1-9])$' | tr '[:lower:]' '[:upper:]')
|
||||||
UPSTREAM_URL="${bastille_url_freebsd}${HW_MACHINE}/${HW_MACHINE_ARCH}/${NAME_VERIFY}"
|
UPSTREAM_URL="${bastille_url_freebsd}${HW_MACHINE}/${HW_MACHINE_ARCH}/${NAME_VERIFY}"
|
||||||
PLATFORM_OS="FreeBSD"
|
PLATFORM_OS="FreeBSD"
|
||||||
validate_release_url
|
validate_release_url
|
||||||
|
|||||||
Reference in New Issue
Block a user