From 144988b85f5576c0cc6710c8aff6ae14aa11a0a8 Mon Sep 17 00:00:00 2001 From: Tomas Pospisek Date: Sun, 25 Jan 2015 16:27:10 +0100 Subject: [PATCH] improve "lxc-create -t debian -h" help text MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - document environment variables - add missing --packages switch to command line - describe how to pass template options to lxc-create (since lxc-create -h doesn't tell you) - render help text in the same pretty format as lxc-create does Signed-off-by: Tomáš Posíšek Acked-by: Stéphane Graber --- templates/lxc-debian.in | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index cfe76ca88..dceb21294 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -440,12 +440,35 @@ clean() usage() { cat < [-a|--arch] [-c|--clean] [--mirror=] [-r|--release=] [--security-mirror=] -clean: purge the download cache after installation -arch: the container architecture (e.g. amd64): defaults to host arch -release: the debian release (e.g. wheezy): defaults to current stable -mirror: debain mirror to use during installation -security mirror: debain mirror to use for security updates +Template specific options can be passed to lxc-create after a '--' like this: + + lxc-create --name=NAME [-lxc-create-options] -- [-template-options] + +Usage: $1 -h|--help -p|--path= [-c|--clean] [-a|--arch=] [-r|--release=] + [--mirror=] [--security-mirror=] + +Options : + + -h, --help print this help text + -p, --path=PATH directory where config and rootfs of this VM will be kept + -a, --arch=ARCH The container architecture. Can be one of: i686, x86_64, + amd64, armhf, armel, powerpc. Defaults to host arch. + -r, --release=RELEASE Debian release. Can be one of: squeeze, wheezy, jessie, sid. + Defaults to current stable. + --mirror=MIRROR Debian mirror to use during installation. Overrides the MIRROR + environment variable (see below). + --security-mirror=SECURITY_MIRROR + Debian mirror to use for security updates. Overrides the + SECURITY_MIRROR environment variable (see below). + -c, --clean only clean up the cache and terminate + +Environment variables: + + MIRROR The Debian package mirror to use. See also the --mirror switch above. + Defaults to '$MIRROR' + SECURITY_MIRROR The Debian package security mirror to use. See also the --security-mirror switch above. + Defaults to '$SECURITY_MIRROR' + EOF return 0 } -- 2.47.2