]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-checkpoint: automatically detect if --external or --veth-pair 1303/head
authorAdrian Reber <areber@redhat.com>
Tue, 15 Nov 2016 15:47:31 +0000 (15:47 +0000)
committerAdrian Reber <areber@redhat.com>
Wed, 16 Nov 2016 07:31:34 +0000 (07:31 +0000)
commit46c8ffd5e5a6e46d5078e724c1ca929e7438ba05
treed54595f8806493c39cc813a8e9fae9437d68b5da
parent471a304df4fff53b8fdf63248c1fdfca56428473
lxc-checkpoint: automatically detect if --external or --veth-pair

With the criu release 2.8 criu deprecated the --veth-pair command-line
option in favor of --external:

f2037e6 veth: Make --external support --veth-pair

git tag --contains f2037e6d3445fc400
v2.8

With this commit lxc-checkpoint will automatically switch between
the new and old command-line option dependent on the detected
criu version.

For criu version older than 2.8 something like this will be used:

  --veth-pair eth0=vethYOK6RW@lxcbr0

and starting with criu version 2.8 it will look like this:

  --external veth[eth0]:vethCRPEYL@lxcbr0

Signed-off-by: Adrian Reber <areber@redhat.com>
src/lxc/criu.c