]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
pass on reboot flag and delete old veth on reboot
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 27 Jul 2015 05:33:08 +0000 (07:33 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Aug 2015 20:24:05 +0000 (16:24 -0400)
commit8bee8851308142a428134cc53a6c1d7db14bfac4
tree47d7561f9fdb81f24bbc7c672865458242b2e17e
parent8bea9fae9347e4980f3e3a4813503eb98af5c132
pass on reboot flag and delete old veth on reboot

When setting lxc.network.veth.pair to get a fixed interface
name the recreation of it after a reboot caused an EEXIST.
-) The reboot flag is now a three-state value. It's set to
1 to request a reboot, and 2 during a reboot until after
lxc_spawn where it is reset to 0.
-) If the reboot is set (!= 0) within instantiate_veth and
a fixed name is used, the interface is now deleted before
being recreated.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c
src/lxc/lxccontainer.c
src/lxc/start.c