[lxc-devel] [PATCH 3/5] lxc-alpine: add --repository option
Stéphane Graber
stgraber at ubuntu.com
Wed Jan 2 18:06:31 UTC 2013
On 12/31/2012 02:49 PM, Natanael Copa wrote:
> This allows specifying what repository to use for the container.
>
> Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
Looks good. Pushed.
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
> ---
> 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;;
> --*=*)
>
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130102/cc330aec/attachment.pgp>
More information about the lxc-devel
mailing list