From 0a29a3ef6a0d128087db842948694c454f7d20eb Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 19 Sep 2017 12:41:24 +0200 Subject: [PATCH] doc: add lxc-update-config manpage Closes #1818. Signed-off-by: Christian Brauner --- configure.ac | 1 + doc/Makefile.am | 1 + doc/lxc-update-config.sgml.in | 133 ++++++++++++++++++++++++++++++++++ 3 files changed, 135 insertions(+) create mode 100644 doc/lxc-update-config.sgml.in diff --git a/configure.ac b/configure.ac index e42347b4d..f5d33e9c2 100644 --- a/configure.ac +++ b/configure.ac @@ -785,6 +785,7 @@ AC_CONFIG_FILES([ doc/lxc-top.sgml doc/lxc-unfreeze.sgml doc/lxc-unshare.sgml + doc/lxc-update-config.sgml doc/lxc-user-nic.sgml doc/lxc-usernsexec.sgml doc/lxc-wait.sgml diff --git a/doc/Makefile.am b/doc/Makefile.am index b0f811517..ae023e411 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -38,6 +38,7 @@ man_MANS = \ lxc-top.1 \ lxc-unfreeze.1 \ lxc-unshare.1 \ + lxc-update-config.1 \ lxc-user-nic.1 \ lxc-usernsexec.1 \ lxc-wait.1 \ diff --git a/doc/lxc-update-config.sgml.in b/doc/lxc-update-config.sgml.in new file mode 100644 index 000000000..520a898e8 --- /dev/null +++ b/doc/lxc-update-config.sgml.in @@ -0,0 +1,133 @@ + + + + +]> + + + @LXC_GENERATE_DATE@ + + lxc-update-config + 1 + + + + lxc-update-config + + + update a legacy pre LXC 2.1 configuration file + + + + + + lxc-update-config + -c config + + + + + Description + + + lxc-update-config detects any legacy + configuration keys in the given config + file and will replace them with the appropriate new configuration + keys. + + + lxc-update-config will first create a backup of + the old config file in the same directory + and name it config.backup and then update + the original config file in place. In + case the update fails to apply or leads to an invalid + config file that cannot be used to start + a container users can either compare + config with + config.backup and try to manually repair + any the invalid configuration keys or simply rollback to the legacy + configuration file by copying + config.backup to + config. + + + Any failures for lxc-update-config to generate a + useable config file are a bug and should + be reported upstream. + + + + + Options + + + + + + + + Path to the configuration file to update. + + + + + + + + + + + + + + + + + &seealso; + + + Author + Christian Brauner christian.brauner@ubuntu.com + + + +