mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 09:48:32 +00:00
Test dpkg for multiarch support in lxc-debian template
Signed-off-by: David Noyes <david.j.noyes@gmail.com>
This commit is contained in:
parent
5b4543292d
commit
28e58a6a4f
@ -381,6 +381,12 @@ EOF
|
||||
if [ "${arch}" != "${hostarch}" ]; then
|
||||
mkdir -p ${rootfs}/etc/dpkg/dpkg.cfg.d
|
||||
echo "foreign-architecture ${hostarch}" > ${rootfs}/etc/dpkg/dpkg.cfg.d/lxc-multiarch
|
||||
|
||||
# Test if dpkg supports multiarch
|
||||
if chroot $rootfs dpkg -l dpkg 2>&1 | grep -q "unknown option 'foreign-architecture'"; then
|
||||
echo "dpkg does not support multiarch: removing multiarch configuration file"
|
||||
rm ${rootfs}/etc/dpkg/dpkg.cfg.d/lxc-multiarch
|
||||
fi
|
||||
fi
|
||||
|
||||
# Write a new sources.list containing both native and multiarch entries
|
||||
|
Loading…
Reference in New Issue
Block a user