mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-13 14:53:42 +00:00
ensure all config items are duplicated on clone/write_config
Since previously I had found a config item that wasn't being propagated by lxc-clone, I went through all the config items and made sure that: a) Each item is documented in lxc.conf b) Each item is written out by write_config The only one that isn't is lxc.include, which by its nature only pulls in other config item types. Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
603c64c289
commit
df2d420507
@ -325,6 +325,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>lxc.network.mtu</option>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
specify the maximum transfer unit for this interface.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>lxc.network.name</option>
|
<option>lxc.network.name</option>
|
||||||
|
@ -2158,6 +2158,12 @@ void write_config(FILE *fout, struct lxc_conf *c)
|
|||||||
fprintf(fout, "lxc.aa_profile = %s\n", c->lsm_aa_profile);
|
fprintf(fout, "lxc.aa_profile = %s\n", c->lsm_aa_profile);
|
||||||
if (c->lsm_se_context)
|
if (c->lsm_se_context)
|
||||||
fprintf(fout, "lxc.se_context = %s\n", c->lsm_se_context);
|
fprintf(fout, "lxc.se_context = %s\n", c->lsm_se_context);
|
||||||
|
if (c->seccomp)
|
||||||
|
fprintf(fout, "lxc.seccomp = %s\n", c->seccomp);
|
||||||
|
if (c->kmsg == 0)
|
||||||
|
fprintf(fout, "lxc.kmsg = 0\n");
|
||||||
|
if (c->autodev)
|
||||||
|
fprintf(fout, "lxc.autodev = 1\n");
|
||||||
if (c->loglevel != LXC_LOG_PRIORITY_NOTSET)
|
if (c->loglevel != LXC_LOG_PRIORITY_NOTSET)
|
||||||
fprintf(fout, "lxc.loglevel = %s\n", lxc_log_priority_to_string(c->loglevel));
|
fprintf(fout, "lxc.loglevel = %s\n", lxc_log_priority_to_string(c->loglevel));
|
||||||
if (c->logfile)
|
if (c->logfile)
|
||||||
@ -2253,4 +2259,12 @@ void write_config(FILE *fout, struct lxc_conf *c)
|
|||||||
fprintf(fout, "lxc.rootfs.mount = %s\n", c->rootfs.mount);
|
fprintf(fout, "lxc.rootfs.mount = %s\n", c->rootfs.mount);
|
||||||
if (c->rootfs.pivot)
|
if (c->rootfs.pivot)
|
||||||
fprintf(fout, "lxc.pivotdir = %s\n", c->rootfs.pivot);
|
fprintf(fout, "lxc.pivotdir = %s\n", c->rootfs.pivot);
|
||||||
|
if (c->start_auto)
|
||||||
|
fprintf(fout, "lxc.start.auto = %d\n", c->start_auto);
|
||||||
|
if (c->start_delay)
|
||||||
|
fprintf(fout, "lxc.start.delay = %d\n", c->start_delay);
|
||||||
|
if (c->start_order)
|
||||||
|
fprintf(fout, "lxc.start.order = %d\n", c->start_order);
|
||||||
|
lxc_list_for_each(it, &c->groups)
|
||||||
|
fprintf(fout, "lxc.group = %s\n", (char *)it->elem);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user