fix the way we determine a container arch
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 9 Jul 2014 11:55:47 +0000 (13:55 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 9 Jul 2014 11:55:47 +0000 (13:55 +0200)
commit400098da015d8def3b2dd00a945ecce56a22179b
tree72720fbad0473a951a57e0da2bd2139a7a9a521d
parentdea39f4209f9cae9087f3f3b6694ea024fff8ce3
fix the way we determine a container arch
prior to this change, the container driver_pid (i.e. libvirt_lxc instance) was used, which always returned x86_64
we now use init_pid (i.e. the systemd or upstart or init instance) which now reflects the container's setting
as a side note we could have used instead someting like 'virsh -c lxc:/// dumpxml container_name | grep arch'
lxcsu