From e5846a6f89db72bdbf3d651e5faf232045d17af8 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 31 Dec 2012 20:49:17 +0100 Subject: [PATCH] lxc-alpine: add --repository option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows specifying what repository to use for the container. Signed-off-by: Natanael Copa Acked-by: Stéphane Graber --- 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 7787e757c..87886f59e 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 -n|--name " >&2 + cat >&2 <] + -p|--path -n|--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;; --*=*)