[lxc-devel] [PATCH] c/r: put lxc-restore-net in /usr/share

Tycho Andersen tycho.andersen at canonical.com
Wed Oct 22 22:26:08 UTC 2014


On Wed, Oct 22, 2014 at 10:25:02PM +0000, Tycho Andersen wrote:
> On restore, we pass criu a script to manage the network interfaces (i.e. the
> full path to lxc-restore-net), which we previously installed into
> /var/lib/<tuple>/lxc. However, this is also the directory that is the default
> for use in mounting the rootfs locally before pivot_root()ing. So, we mounted
> the rootfs and then happliy called criu, pointing it to this directory which
> didn't have lxc-restore-net any more, it just had the container's rootfs.
> Instead, we should put lxc-restore-net somewhere else, so that criu can still
> see it after the rootfs is mounted.

This patch also needs one small change to the packaging, although I'm
not sure exactly where that needs to go:

=== modified file 'debian/lxc.install'
--- debian/lxc.install  2014-04-08 23:32:37 +0000
+++ debian/lxc.install  2014-10-22 22:24:04 +0000
@@ -6,6 +6,7 @@
 usr/share/lxc/config
 usr/share/lxc/hooks
 usr/share/lxc/lxc.functions
+usr/share/lxc/lxc-restore-net
 usr/share/man
 var/cache/lxc
 var/lib/lxc

Tycho


More information about the lxc-devel mailing list