Le dimanche 10 mars 2019 à 07:43:30+0100, Harald Dunkel a écrit : > Package: lxc > Version: 1:3.1.0+really3.0.3-5 > > Running > lxc-create -t download -- --help > > I had expected to get usage information about the download template, > but instead I got a huge list of images. Next it showed > > Distribution: > > and got unresponsive. Exit with ^C or ^D. Apparently it has created a > new container directory /var/lib/lxc/--help. > > This is unexpected. The -- is supposed to separate the template > options from the options to lxc-create itself. There should have > either been an error message about the missing "-n name" option, > or any kind of usage message.
Hi,
From lxc-create(1) manpage:
-- template-options
This will pass template-options to the template as
arguments. To see the list of options supported by
the template, you can run lxc-create -t TEMPLATE
-h.
So this is the mechanic to get the help for a specific template.
That said, the fact that it attempts to create a container named --help
is quite weird. I suspect it's the result of the change the developers
of lxc made to make lxc-XXX command accepting the container's name as a
positional argument. As lxc-download doesn't recognise --help as an
argument, it became positional and got interpreted as the name of the
container.
Best regards,
--
Pierre-Elliott Bécue
GPG: 9AE0 4D98 6400 E3B6 7528 F493 0D44 2664 1949 74E2
It's far easier to fight for one's principles than to live up to them.
signature.asc
Description: PGP signature

