mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-24 10:51:22 +00:00
lxc-ubuntu: Fix building on secondary architectures
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
fc12923999
commit
aec6a20578
@ -39,8 +39,6 @@ export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
MIRROR=${MIRROR:-http://archive.ubuntu.com/ubuntu}
|
|
||||||
SECURITY_MIRROR=${SECURITY_MIRROR:-http://security.ubuntu.com/ubuntu}
|
|
||||||
LOCALSTATEDIR="@LOCALSTATEDIR@"
|
LOCALSTATEDIR="@LOCALSTATEDIR@"
|
||||||
LXC_TEMPLATE_CONFIG="@LXCTEMPLATECONFIG@"
|
LXC_TEMPLATE_CONFIG="@LXCTEMPLATECONFIG@"
|
||||||
# Allows the lxc-cache directory to be set by environment variable
|
# Allows the lxc-cache directory to be set by environment variable
|
||||||
@ -333,6 +331,17 @@ download_ubuntu()
|
|||||||
arch=$2
|
arch=$2
|
||||||
release=$3
|
release=$3
|
||||||
|
|
||||||
|
case $2 in
|
||||||
|
amd64|i386)
|
||||||
|
MIRROR=${MIRROR:-http://archive.ubuntu.com/ubuntu}
|
||||||
|
SECURITY_MIRROR=${SECURITY_MIRROR:-http://security.ubuntu.com/ubuntu}
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
MIRROR=${MIRROR:-http://ports.ubuntu.com/ubuntu-ports}
|
||||||
|
SECURITY_MIRROR=${SECURITY_MIRROR:-http://ports.ubuntu.com/ubuntu-ports}
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
packages_template=${packages_template:-"ssh,vim"}
|
packages_template=${packages_template:-"ssh,vim"}
|
||||||
debootstrap_parameters=
|
debootstrap_parameters=
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user