Commit f876c223 by Serge Hallyn Committed by Daniel Lezcano

lxc-ubuntu: fix non-native architectures

When installing a non-native architecture, the template installs a bunch of packages of the native architecture to work around existing limitations of qemu-user-static, mostly related to netlink. The current code would install upstart of the host architecture but force the amd64 version of the others. This was just a mistake done while testing/developping the code. Fixing now to always install the native architecture version of all of them. Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent f34ff296
...@@ -513,7 +513,7 @@ post_process() ...@@ -513,7 +513,7 @@ post_process()
# Finally update the lists and install upstart using the host architecture # Finally update the lists and install upstart using the host architecture
chroot $rootfs apt-get update chroot $rootfs apt-get update
chroot $rootfs apt-get install --force-yes -y --no-install-recommends upstart:${hostarch} mountall:amd64 iproute:amd64 isc-dhcp-client:amd64 chroot $rootfs apt-get install --force-yes -y --no-install-recommends upstart:${hostarch} mountall:${hostarch} iproute:${hostarch} isc-dhcp-client:${hostarch}
fi fi
# rmdir /dev/shm in precise and quantal containers. # rmdir /dev/shm in precise and quantal containers.
......
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