]> git.ipfire.org Git - thirdparty/lxc.git/commit
rename physical nics at shutdown
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 4 Dec 2012 18:00:26 +0000 (12:00 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 4 Dec 2012 20:16:30 +0000 (14:16 -0600)
commit7b35f3d60a7d007e39b44461181e118bd3942da7
tree7cd93ab1f3fa0eae5deb4c0c01a1be5dc277560a
parent4245ba50074f33c4bfa8e8b133598767841e712b
rename physical nics at shutdown

When a physical nic is being set up, store its ifindex and original name
in struct lxc_conf.  At reboot, reset the original name.
We can't just go over the original network list in lxc_conf at shutdown
because that may be tweaked in the meantime through the C api.  The
saved_nics list is only setup during lxc_spawn(), and restored and
freed after lxc_start.

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1086244

Changelog: remove non-effect change in execute.c

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/execute.c
src/lxc/start.c