Commit f7512464 by Stéphane Graber

Merge pull request #643 from raspberrypython/issue-616

Test dpkg for multiarch support in lxc-debian template
parents 7b6753e7 92824ee0
...@@ -385,8 +385,10 @@ EOF ...@@ -385,8 +385,10 @@ EOF
# If the container isn't running a native architecture, setup multiarch # If the container isn't running a native architecture, setup multiarch
if [ "${arch}" != "${hostarch}" ]; then if [ "${arch}" != "${hostarch}" ]; then
mkdir -p ${rootfs}/etc/dpkg/dpkg.cfg.d # Test if dpkg supports multiarch
echo "foreign-architecture ${hostarch}" > ${rootfs}/etc/dpkg/dpkg.cfg.d/lxc-multiarch if ! chroot $rootfs dpkg --print-foreign-architecture 2>&1; then
chroot $rootfs dpkg --add-architecture ${hostarch}
fi
fi fi
# Write a new sources.list containing both native and multiarch entries # Write a new sources.list containing both native and multiarch entries
......
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