Re: [lxc-devel] [RFC 2/2] lxc-user-nic: rename nic inside container to desired name

2013-11-05 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Tue, Nov 05, 2013 at 02:15:00PM -0600, Serge Hallyn wrote: > > To do so we do a quick setns into the container's netns. This > > (unexpectedly) turns out cleaner than trying to rename it from > > lxc_setup(), because we don't know the original ni

Re: [lxc-devel] [RFC 2/2] lxc-user-nic: rename nic inside container to desired name

2013-11-05 Thread Stéphane Graber
On Tue, Nov 05, 2013 at 02:15:00PM -0600, Serge Hallyn wrote: > To do so we do a quick setns into the container's netns. This > (unexpectedly) turns out cleaner than trying to rename it from > lxc_setup(), because we don't know the original nic name in > the container until we created it which we

[lxc-devel] [RFC 2/2] lxc-user-nic: rename nic inside container to desired name

2013-11-05 Thread Serge Hallyn
To do so we do a quick setns into the container's netns. This (unexpectedly) turns out cleaner than trying to rename it from lxc_setup(), because we don't know the original nic name in the container until we created it which we do in the parent after the init has been cloned. Signed-off-by: Serge