From 5eb28ae492ee7417c458695e410e6d3a526c56e1 Mon Sep 17 00:00:00 2001 From: Guilhem Lettron Date: Wed, 13 Nov 2013 14:22:10 +0100 Subject: [PATCH] lxc-ubuntu: Add mirror and security-mirror options MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Guilhem Lettron Acked-by: Stéphane Graber --- templates/lxc-ubuntu.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index b0a8e5afc..68958268a 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -243,7 +243,7 @@ download_ubuntu() arch=$2 release=$3 - packages_template="ssh" + packages_template=${packages_template:-"ssh"} # Try to guess a list of langpacks to install langpacks="language-pack-en" @@ -593,7 +593,7 @@ EOF return 0 } -options=$(getopt -o a:b:hp:r:n:FS:du: -l arch:,bindhome:,help,path:,release:,name:,flush-cache,auth-key:,debug,rootfs:,packages:,user:,password: -- "$@") +options=$(getopt -o a:b:hp:r:n:FS:du: -l arch:,bindhome:,help,path:,release:,name:,flush-cache,auth-key:,debug,rootfs:,packages:,user:,password:,mirror:,security-mirror: -- "$@") if [ $? -ne 0 ]; then usage $(basename $0) exit 1 @@ -648,6 +648,8 @@ do -a|--arch) arch=$2; shift 2;; -S|--auth-key) auth_key=$2; shift 2;; -d|--debug) debug=1; shift 1;; + --mirror) MIRROR=$2; shift 2;; + --security-mirror) SECURITY_MIRROR=$2; shift 2;; --) shift 1; break ;; *) break ;; esac -- 2.47.2