[lxc-devel] [PATCH 1/2] ubuntu: Add support for arm64 and ppc64el
Serge Hallyn
serge.hallyn at ubuntu.com
Tue Jan 28 17:53:48 UTC 2014
Quoting Stéphane Graber (stgraber at ubuntu.com):
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
> ---
> templates/lxc-ubuntu.in | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in
> index 74d6eb4..b325ee4 100644
> --- a/templates/lxc-ubuntu.in
> +++ b/templates/lxc-ubuntu.in
> @@ -658,6 +658,10 @@ else
> arch="amd64"
> elif [ "$arch" = "armv7l" ]; then
> arch="armhf"
> + elif [ "$arch" = "aarch64" ]; then
> + arch="arm64"
> + elif [ "$arch" = "ppc64le" ]; then
> + arch="ppc64el"
> fi
> fi
>
> @@ -712,8 +716,13 @@ if [ $hostarch = "i386" -a $arch = "amd64" ]; then
> exit 1
> fi
>
> -if [ $hostarch = "armhf" -o $hostarch = "armel" ] && \
> - [ $arch != "armhf" -a $arch != "armel" ]; then
> +if [ $hostarch = "armhf" -o $hostarch = "armel" -o $hostarch = "arm64" ] && \
> + [ $arch != "armhf" -a $arch != "armel" -a $arch != "arm64" ]; then
> + echo "can't create $arch container on $hostarch"
> + exit 1
> +fi
> +
> +if [ $hostarch = "arm64" ] && [ $arch != "arm64" ]; then
> echo "can't create $arch container on $hostarch"
You also can't do the opposite right? There's no qemu-user-aarch64 yet
so you can't create arm64 containers on armel or armhf can you?
> exit 1
> fi
> --
> 1.8.5.3
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
More information about the lxc-devel
mailing list