[lxc-devel] [PATCH 1/1] add lxc.console.logpath

Serge Hallyn serge.hallyn at ubuntu.com
Wed Aug 6 22:41:35 UTC 2014


Quoting Stéphane Graber (stgraber at ubuntu.com):
> On Wed, Aug 06, 2014 at 10:10:44PM +0000, Serge Hallyn wrote:
> > Quoting Stéphane Graber (stgraber at ubuntu.com):
> > > On Wed, Aug 06, 2014 at 05:30:58PM +0000, Serge Hallyn wrote:
> > > > Some time ago, lxc.console was changed to require a device.  lxc-start
> > > > gained an lxc console logfile argument, but this was not supported
> > > > through the container config.
> > > > 
> > > > This patch adds the option through container config as 'lxc.console.logfile'.
> > > > This allows for instance cloud providers to configure all containers to
> > > > log the consoles.
> > > > 
> > > 
> > > The patch seems incomplete to me, you're missing clear_config_item,
> > > get_config_item and save_config support at least.
> > 
> > Yeah - though we don't need save_config for it.
> 
> Why not?
> 
> What if I set it in my container's config, then call save_config() over
> the API, won't I loose the setting then?

No, save_config now just write the unexpanded char *

> Same thing if I clone a container that has the key set.

-serge


More information about the lxc-devel mailing list