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

Serge Hallyn serge.hallyn at ubuntu.com
Thu Oct 23 15:09:23 UTC 2014


Quoting Tycho Andersen (tycho.andersen at canonical.com):
> 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:

Yeah so I"ll leave it to Stéphane to apply both patches.

thanks,
-serge

> === 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
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list