[lxc-devel] Please make "-f" mandatory in lxc-create

2012-05-28 Thread richard -rw- weinberger
Hi! Is there any use case where a user wants to omit "-f"? Yesterday I've wasted a few hours with finding out why LXC set up a broken container. Then I found out that I've created it using "lxc-create -n foo foo.cfg" instead of "lxc-create -n foo -f foo.cfg". -- Thanks, //richard --

Re: [lxc-devel] Please make "-f" mandatory in lxc-create

2012-05-28 Thread Stéphane Graber
On 05/28/2012 06:02 PM, richard -rw- weinberger wrote: > Hi! > > Is there any use case where a user wants to omit "-f"? > Yesterday I've wasted a few hours with finding out why LXC set up a > broken container. > Then I found out that I've created it using "lxc-create -n foo > foo.cfg" instead of "

Re: [lxc-devel] Please make "-f" mandatory in lxc-create

2012-05-28 Thread richard -rw- weinberger
On Tue, May 29, 2012 at 12:06 AM, Stéphane Graber wrote: > At least in Ubuntu -f isn't mandatory because calling lxc-create without > it will simply default to a system wide configuration in /etc/lxc/lxc.conf. Is this really useful? My openSUSE system does not have /etc/lxc/lxc.conf, so lxc-creat

Re: [lxc-devel] Please make "-f" mandatory in lxc-create

2012-05-28 Thread Stéphane Graber
On 05/28/2012 06:29 PM, richard -rw- weinberger wrote: > On Tue, May 29, 2012 at 12:06 AM, Stéphane Graber wrote: >> At least in Ubuntu -f isn't mandatory because calling lxc-create without >> it will simply default to a system wide configuration in /etc/lxc/lxc.conf. > > Is this really useful? >

Re: [lxc-devel] Please make "-f" mandatory in lxc-create

2012-05-28 Thread richard -rw- weinberger
On Tue, May 29, 2012 at 12:36 AM, Stéphane Graber wrote: > On 05/28/2012 06:29 PM, richard -rw- weinberger wrote: >> On Tue, May 29, 2012 at 12:06 AM, Stéphane Graber >> wrote: >>> At least in Ubuntu -f isn't mandatory because calling lxc-create without >>> it will simply default to a system wid

Re: [lxc-devel] Please make "-f" mandatory in lxc-create

2012-05-28 Thread Michael Tokarev
On 29.05.2012 02:02, richard -rw- weinberger wrote: > Hi! > > Is there any use case where a user wants to omit "-f"? In my case I didn't use -f, but later resorted to using -f /dev/null to be sure. So this is yet another "me too", I guess. Maybe there should be more well-defined behavour about