Allow having multiple toolbox images from the same base image

This adds an --image flag that overrides the default name of the
customized toolbox image from which the toolbox container is created.
This commit is contained in:
Debarshi Ray 2018-10-16 19:35:34 +02:00
parent ef05b5c7c1
commit 31de3ff96f

View file

@ -183,6 +183,7 @@ usage()
echo " [--release <release>]"
echo " [-v | --verbose]"
echo " create [--candidate-registry]"
echo " [--image <name>]"
echo " or: fedora-toolbox [--container <name>]"
echo " [--release <release>]"
echo " [-v | --verbose]"
@ -260,6 +261,15 @@ case $op in
--candidate-registry )
registry=$registry_candidate
;;
--image )
shift
if [ "$1" == "" ]; then
echo "$0: missing argument for '--image'"
echo "Try '$0 --help' for more information."
exit 1
fi
toolbox_image=$1
;;
* )
exit_if_unrecognized_option $1
esac