summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-25 09:39:23 -0200
committerRenato Botelho <renato@netgate.com>2015-11-25 09:39:23 -0200
commit919c84863cbf711b9335cf265771ad8a5fe750e6 (patch)
tree5ea190b32d133aa49b85c12a6d3256c0088946ed /build.sh
parent9447077e3f9e3e90d5afd5aa223348e71cd1350a (diff)
downloadpfsense-919c84863cbf711b9335cf265771ad8a5fe750e6.zip
pfsense-919c84863cbf711b9335cf265771ad8a5fe750e6.tar.gz
Teach build_snapshots to deal with poudriere builds
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index cb59ae6..00d89f4 100755
--- a/build.sh
+++ b/build.sh
@@ -66,6 +66,7 @@ usage() {
echo " --build-kernel argument - build specified kernel. Example --build-kernel KERNEL_NAME"
echo " --install-extra-kernels argument - Put extra kernel(s) under /kernel image directory. Example --install-extra-kernels KERNEL_NAME_WRAP"
echo " --snapshots - Build snapshots and upload them to RSYNCIP"
+ echo " --poudriere-snapshots - Update poudriere packages and send them to PKG_RSYNC_HOSTNAME"
echo " --enable-memorydisks - This will put stage_dir and iso_dir as MFS filesystems"
echo " --disable-memorydisks - Will just teardown these filesystems created by --enable-memorydisks"
echo " --setup-poudriere - Install poudriere and create necessary jails and ports tree"
@@ -87,6 +88,7 @@ unset pfPORTTOBUILD
unset IMAGETYPE
unset DO_NOT_UPLOAD
unset SNAPSHOTS
+unset POUDRIERE_SNAPSHOTS
unset ARCH_LIST
BUILDACTION="images"
@@ -137,6 +139,9 @@ while test "$1" != ""; do
export SNAPSHOTS=1
IMAGETYPE="all"
;;
+ --poudriere-snapshots)
+ export POUDRIERE_SNAPSHOTS=1
+ ;;
--build-kernel)
BUILDACTION="buildkernel"
shift
@@ -223,7 +228,9 @@ fi
# Update snapshot status and exit
if [ "${BUILDACTION}" = "snapshot_status_message" ]; then
- export SNAPSHOTS=1
+ if [ -z "${POUDRIERE_SNAPSHOTS}" ]; then
+ export SNAPSHOTS=1
+ fi
snapshots_update_status "${snapshot_status_message}"
exit 0
fi
OpenPOWER on IntegriCloud