From 88c94063d2e8938c04a4dfed56d7fb4b9689dc83 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 9 Nov 2020 16:15:20 +0100 Subject: [PATCH] testing: Make building guest images after strongSwan optional This is basically only for the build-rootimage use case. --- testing/scripts/build-strongswan | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/testing/scripts/build-strongswan b/testing/scripts/build-strongswan index 77363436e3..779ec8bb37 100755 --- a/testing/scripts/build-strongswan +++ b/testing/scripts/build-strongswan @@ -21,12 +21,13 @@ mkdir -p $IMGDIR usage() { cat << EOF Usage: - ${0##*/} [--all] [--guest NAME] [--replace] [--clean] [SRCDIR] - ${0##*/} [--all] [--guest NAME] [--replace] [--tarball VERSION] + ${0##*/} [--all] [--guest NAME|--no-guests] [--replace] [--clean] [SRCDIR] + ${0##*/} [--all] [--guest NAME|--no-guests] [--replace] [--tarball VERSION] --help (-h) show usage information --all (-a) build/install all software, not only strongSwan --clean (-c) use a new strongSwan build directory --guest NAME (-g) only install in a specific guest image + --no-guests (-n) don't build any guest images after the root image --replace (-r) replace the root image (implies --all) --tarball (-t) build strongSwan from a release tarball EOF @@ -35,6 +36,7 @@ EOF ALL_RECIPES= CLEAN= GUEST= +NO_GUESTS= REPLACE= TARBALL= @@ -58,6 +60,9 @@ while :; do die "Guest name missing" fi ;; + -n|--no-guests) + NO_GUESTS=1 + ;; -r|--replace) REPLACE=1 ;; @@ -182,7 +187,7 @@ do done # rebuild the guest images after we modified the root image -if [ -z "$GUEST" ]; then +if [ -z "$GUEST" -a -z "$NO_GUESTS" ]; then # cleanup before mounting guest images on_exit # building the guest images without certificates fails on winnetou -- 2.47.2