]> git.ipfire.org Git - thirdparty/lxc.git/commit
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:33:30 +0000 (16:33 -0400)
commit0f3022c93781f4d233f72c7f4664711475b0b0d8
treeee1b05c0f4b1d6456671a0eba7fa2762df602045
parent4a5911e8d49e205bc777e30c685eb5a5da2dbc7f
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