Skip to content

Commit

Permalink
Merge pull request #928 from stgraber/master
Browse files Browse the repository at this point in the history
lxc-ubuntu: Fix building on secondary architectures
  • Loading branch information
Christian Brauner committed Mar 30, 2016
2 parents fc12923 + aec6a20 commit 98139b9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions templates/lxc-ubuntu.in
Expand Up @@ -39,8 +39,6 @@ export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin

set -e

MIRROR=${MIRROR:-http://archive.ubuntu.com/ubuntu}
SECURITY_MIRROR=${SECURITY_MIRROR:-http://security.ubuntu.com/ubuntu}
LOCALSTATEDIR="@LOCALSTATEDIR@"
LXC_TEMPLATE_CONFIG="@LXCTEMPLATECONFIG@"
# Allows the lxc-cache directory to be set by environment variable
Expand Down Expand Up @@ -333,6 +331,17 @@ download_ubuntu()
arch=$2
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"}
debootstrap_parameters=

Expand Down

0 comments on commit 98139b9

Please sign in to comment.