Commit 5eb28ae4 by Guilhem Lettron Committed by Stéphane Graber

lxc-ubuntu: Add mirror and security-mirror options

parent 28b62856
...@@ -243,7 +243,7 @@ download_ubuntu() ...@@ -243,7 +243,7 @@ download_ubuntu()
arch=$2 arch=$2
release=$3 release=$3
packages_template="ssh" packages_template=${packages_template:-"ssh"}
# Try to guess a list of langpacks to install # Try to guess a list of langpacks to install
langpacks="language-pack-en" langpacks="language-pack-en"
...@@ -593,7 +593,7 @@ EOF ...@@ -593,7 +593,7 @@ EOF
return 0 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 if [ $? -ne 0 ]; then
usage $(basename $0) usage $(basename $0)
exit 1 exit 1
...@@ -648,6 +648,8 @@ do ...@@ -648,6 +648,8 @@ do
-a|--arch) arch=$2; shift 2;; -a|--arch) arch=$2; shift 2;;
-S|--auth-key) auth_key=$2; shift 2;; -S|--auth-key) auth_key=$2; shift 2;;
-d|--debug) debug=1; shift 1;; -d|--debug) debug=1; shift 1;;
--mirror) MIRROR=$2; shift 2;;
--security-mirror) SECURITY_MIRROR=$2; shift 2;;
--) shift 1; break ;; --) shift 1; break ;;
*) break ;; *) break ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment