mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 11:20:59 +00:00
Improve the help of lxc-create
* remove unavailable options (-w, -r) * remove overlapped option (-P) * classify options according to bdev type Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
7eff30fd5d
commit
2984ee3673
@ -130,33 +130,41 @@ static struct lxc_arguments my_args = {
|
|||||||
.progname = "lxc-create",
|
.progname = "lxc-create",
|
||||||
.helpfn = create_helpfn,
|
.helpfn = create_helpfn,
|
||||||
.help = "\
|
.help = "\
|
||||||
--name=NAME -t template [-w] [-r] [-P lxcpath]\n\
|
--name=NAME --template=TEMPLATE [OPTION...]\n\
|
||||||
\n\
|
\n\
|
||||||
lxc-create creates a container\n\
|
lxc-create creates a container\n\
|
||||||
\n\
|
\n\
|
||||||
Options :\n\
|
Options :\n\
|
||||||
-n, --name=NAME NAME of the container\n\
|
-n, --name=NAME NAME of the container\n\
|
||||||
-f, --config=file Initial configuration file\n\
|
-f, --config=CONFIG Initial configuration file\n\
|
||||||
-t, --template=t Template to use to setup container\n\
|
-t, --template=TEMPLATE Template to use to setup container\n\
|
||||||
-B, --bdev=BDEV Backing store type to use\n\
|
-B, --bdev=BDEV Backing store type to use\n\
|
||||||
-P, --lxcpath=PATH Place container under PATH\n\
|
--dir=DIR Place rootfs directory under DIR\n\
|
||||||
|
\n\
|
||||||
|
BDEV options for LVM (with -B/--bdev lvm):\n\
|
||||||
--lvname=LVNAME Use LVM lv name LVNAME\n\
|
--lvname=LVNAME Use LVM lv name LVNAME\n\
|
||||||
(Default: container name)\n\
|
(Default: container name)\n\
|
||||||
--vgname=VG Use LVM vg called VG\n\
|
--vgname=VG Use LVM vg called VG\n\
|
||||||
(Default: lxc)\n\
|
(Default: lxc)\n\
|
||||||
--thinpool=TP Use LVM thin pool called TP\n\
|
--thinpool=TP Use LVM thin pool called TP\n\
|
||||||
(Default: lxc)\n\
|
(Default: lxc)\n\
|
||||||
|
\n\
|
||||||
|
BDEV options for Ceph RBD (with -B/--bdev rbd) :\n\
|
||||||
--rbdname=RBDNAME Use Ceph RBD name RBDNAME\n\
|
--rbdname=RBDNAME Use Ceph RBD name RBDNAME\n\
|
||||||
(Default: container name)\n\
|
(Default: container name)\n\
|
||||||
--rbdpool=POOL Use Ceph RBD pool name POOL\n\
|
--rbdpool=POOL Use Ceph RBD pool name POOL\n\
|
||||||
(Default: lxc)\n\
|
(Default: lxc)\n\
|
||||||
|
\n\
|
||||||
|
BDEV option for ZFS (with -B/--bdev zfs) :\n\
|
||||||
|
--zfsroot=PATH Create zfs under given zfsroot\n\
|
||||||
|
(Default: tank/lxc)\n\
|
||||||
|
\n\
|
||||||
|
BDEV options for LVM or Loop (with -B/--bdev lvm/loop) :\n\
|
||||||
--fstype=TYPE Create fstype TYPE\n\
|
--fstype=TYPE Create fstype TYPE\n\
|
||||||
(Default: ext3)\n\
|
(Default: ext3)\n\
|
||||||
--fssize=SIZE[U] Create filesystem of size SIZE * unit U (bBkKmMgGtT)\n\
|
--fssize=SIZE[U] Create filesystem of\n\
|
||||||
(Default: 1G, default unit: M)\n\
|
size SIZE * unit U (bBkKmMgGtT)\n\
|
||||||
--dir=DIR Place rootfs directory under DIR\n\
|
(Default: 1G, default unit: M)\n",
|
||||||
--zfsroot=PATH Create zfs under given zfsroot\n\
|
|
||||||
(Default: tank/lxc)\n",
|
|
||||||
.options = my_longopts,
|
.options = my_longopts,
|
||||||
.parser = my_parser,
|
.parser = my_parser,
|
||||||
.checker = NULL,
|
.checker = NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user