Commit b0a17c4a by Christian Brauner Committed by GitHub

Merge pull request #1352 from evgeni/powerpc

Debian: powerpc and architecture fixes
parents 759e73a5 944d1191
...@@ -542,7 +542,7 @@ EOF ...@@ -542,7 +542,7 @@ EOF
# If the container isn't running a native architecture, setup multiarch # If the container isn't running a native architecture, setup multiarch
if [ "$interpreter" = "" -a "${arch}" != "${hostarch}" ]; then if [ "$interpreter" = "" -a "${arch}" != "${hostarch}" ]; then
# Test if dpkg supports multiarch # Test if dpkg supports multiarch
if ! chroot "$rootfs" dpkg --print-foreign-architecture 2>&1; then if ! chroot "$rootfs" dpkg --print-foreign-architectures 2>&1; then
chroot "$rootfs" dpkg --add-architecture "${hostarch}" chroot "$rootfs" dpkg --add-architecture "${hostarch}"
fi fi
fi fi
...@@ -653,6 +653,8 @@ elif [ "$arch" = "x86_64" ]; then ...@@ -653,6 +653,8 @@ elif [ "$arch" = "x86_64" ]; then
arch="amd64" arch="amd64"
elif [ "$arch" = "armv7l" ]; then elif [ "$arch" = "armv7l" ]; then
arch="armhf" arch="armhf"
elif [ "$arch" = "ppc" ]; then
arch="powerpc"
elif [ "$arch" = "ppc64le" ]; then elif [ "$arch" = "ppc64le" ]; then
arch="ppc64el" arch="ppc64el"
elif [ "$arch" = "mips" -a "$littleendian" = "yes" ]; then elif [ "$arch" = "mips" -a "$littleendian" = "yes" ]; then
......
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