[lxc-devel] [PATCH 3/5] lxc-alpine: add --repository option
Natanael Copa
ncopa at alpinelinux.org
Mon Dec 31 19:49:17 UTC 2012
This allows specifying what repository to use for the container.
Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
---
templates/lxc-alpine.in | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
index 7787e75..87886f5 100644
--- a/templates/lxc-alpine.in
+++ b/templates/lxc-alpine.in
@@ -119,7 +119,10 @@ die() {
}
usage() {
- echo "Usage: $(basename $0) [-h|--help] -p|--path <path> -n|--name <name>" >&2
+ cat >&2 <<EOF
+Usage: $(basename $0) [-h|--help] [-r|--repository <url>]
+ -p|--path <path> -n|--name <name>
+EOF
}
usage_err() {
@@ -153,6 +156,11 @@ while [ $# -gt 0 ]; do
path=$1
shift
;;
+ -r|--repository)
+ optarg_check $opt "$1"
+ repository=$1
+ shift
+ ;;
--)
break;;
--*=*)
--
1.8.0.3
More information about the lxc-devel
mailing list