testing: Make building guest images after strongSwan optional
This is basically only for the build-rootimage use case.
This commit is contained in:
@@ -21,12 +21,13 @@ mkdir -p $IMGDIR
|
|||||||
usage() {
|
usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Usage:
|
Usage:
|
||||||
${0##*/} [--all] [--guest NAME] [--replace] [--clean] [SRCDIR]
|
${0##*/} [--all] [--guest NAME|--no-guests] [--replace] [--clean] [SRCDIR]
|
||||||
${0##*/} [--all] [--guest NAME] [--replace] [--tarball VERSION]
|
${0##*/} [--all] [--guest NAME|--no-guests] [--replace] [--tarball VERSION]
|
||||||
--help (-h) show usage information
|
--help (-h) show usage information
|
||||||
--all (-a) build/install all software, not only strongSwan
|
--all (-a) build/install all software, not only strongSwan
|
||||||
--clean (-c) use a new strongSwan build directory
|
--clean (-c) use a new strongSwan build directory
|
||||||
--guest NAME (-g) only install in a specific guest image
|
--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)
|
--replace (-r) replace the root image (implies --all)
|
||||||
--tarball (-t) build strongSwan from a release tarball
|
--tarball (-t) build strongSwan from a release tarball
|
||||||
EOF
|
EOF
|
||||||
@@ -35,6 +36,7 @@ EOF
|
|||||||
ALL_RECIPES=
|
ALL_RECIPES=
|
||||||
CLEAN=
|
CLEAN=
|
||||||
GUEST=
|
GUEST=
|
||||||
|
NO_GUESTS=
|
||||||
REPLACE=
|
REPLACE=
|
||||||
TARBALL=
|
TARBALL=
|
||||||
|
|
||||||
@@ -58,6 +60,9 @@ while :; do
|
|||||||
die "Guest name missing"
|
die "Guest name missing"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
-n|--no-guests)
|
||||||
|
NO_GUESTS=1
|
||||||
|
;;
|
||||||
-r|--replace)
|
-r|--replace)
|
||||||
REPLACE=1
|
REPLACE=1
|
||||||
;;
|
;;
|
||||||
@@ -182,7 +187,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# rebuild the guest images after we modified the root image
|
# 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
|
# cleanup before mounting guest images
|
||||||
on_exit
|
on_exit
|
||||||
# building the guest images without certificates fails on winnetou
|
# building the guest images without certificates fails on winnetou
|
||||||
|
|||||||
Reference in New Issue
Block a user