machine_setup/ansible/roles/freebsd_update_server/files/build_release.bash

23 lines
496 B
Bash
Raw Normal View History

2023-09-01 22:14:12 +00:00
#!/usr/bin/env bash
#
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function main {
build_release_script
2023-09-01 22:14:12 +00:00
}
function build_release_script {
2023-09-01 22:14:12 +00:00
/usr/src/release/release.sh -c /opt/freebsd_update_server/release.conf
}
function build_release_manually {
make -C /usr/src buildworld buildkernel
make -C /usr/src/release obj
make -C /usr/src/release release
make -C /usr/src/release install DESTDIR=/where/to/put/the/images
}
2023-09-01 22:14:12 +00:00
main "${@}"