Quoting Stéphane Graber ([email protected]):
> Signed-off-by: Stéphane Graber <[email protected]>
> ---
>  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
> [email protected]
> http://lists.linuxcontainers.org/listinfo/lxc-devel
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to