Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 14:04:43 +0100 Natanael Copa nc...@alpinelinux.org wrote: @@ -18,10 +18,11 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA lxc_path=@LXCPATH@ +program=${0##*/} usage() { - echo usage: $(basename $0) [--active] [--]

[lxc-devel] [PATCH] Fix package name needed for building docs with RPM

2012-11-14 Thread Dwight Engen
Tested on Oracle Linux 6 and Fedora 17 Signed-off-by: Dwight Engen dwight.en...@oracle.com --- lxc.spec.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lxc.spec.in b/lxc.spec.in index 10b7254..7998cfd 100644 --- a/lxc.spec.in +++ b/lxc.spec.in @@ -30,7 +30,7 @@

Re: [lxc-devel] [PATCH] ensure btrfs subvolume is removed when container creating fails

2012-11-14 Thread Serge Hallyn
Quoting Frederic Crozat (fcro...@suse.com): Hi, while updating our package for LXC 0.8.0, I discovered that lxc-create didn't properly delete btrfs subvolume if container creation failed for any reason. Attached patch fixes this issue. Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com

Re: [lxc-devel] [PATCH] ensure btrfs subvolume is removed when container creating fails

2012-11-14 Thread Stéphane Graber
On 11/14/2012 10:47 AM, Serge Hallyn wrote: Quoting Frederic Crozat (fcro...@suse.com): Hi, while updating our package for LXC 0.8.0, I discovered that lxc-create didn't properly delete btrfs subvolume if container creation failed for any reason. Attached patch fixes this issue.

Re: [lxc-devel] [PATCH] lxc-destroy: make it work with busybox

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 08:51:07 -0600 Serge Hallyn serge.hal...@canonical.com wrote: Quoting Natanael Copa (nc...@alpinelinux.org): Busybox 'rm' has no support for --one-file-system. We can make it work on busybox with find ... -xdev. Hm, well it does slow it down a smidgeon, but no real

Re: [lxc-devel] [PATCH] lxc-start: add option -p, --pidfile=FILE for use with --daemon

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 08:44:41 -0600 Serge Hallyn serge.hal...@canonical.com wrote: Quoting Natanael Copa (nc...@alpinelinux.org): Add option to create a pidfile for lxc-start daemon. This is helpful for init scripts and process monitors. Why only when daemonizing? Someone could presumably

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 09:54:58 -0600 Serge Hallyn serge.hal...@canonical.com wrote: (Note also that lxc-ls may be rewritten in python. Is that a problem for your use case?) well... The Alpine Linux base system is 6MB excluding kernel. I offer to spend a day or so to save 700kb by getting rid

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 09:54:58 -0600 Serge Hallyn serge.hal...@canonical.com wrote: Quoting Natanael Copa (nc...@alpinelinux.org): forgot this... Would you be prepared for minor sacrifices to use posix compliant shell scripts? Someone else can jump in if they object, but I personally

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 13:50:54 -0500 Michael H. Warfield m...@wittsend.com wrote: Converting from bash to ash (which is very sh like) isn't too bad if you are not making extensive use of arrays and string functions. It's probably doable (having done it myself with some fairly sophisticated

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Serge Hallyn
Quoting Natanael Copa (nc...@alpinelinux.org): On Wed, 14 Nov 2012 09:54:58 -0600 Serge Hallyn serge.hal...@canonical.com wrote: (Note also that lxc-ls may be rewritten in python. Is that a problem for your use case?) well... The Alpine Linux base system is 6MB excluding kernel. I

Re: [lxc-devel] Lxc-devel Digest, Vol 51, Issue 10

2012-11-14 Thread Han Yuejuan-B42073
Hello all, I use following way to start a container as a daemon: lxc-start –n CONTAINER_NAME -d and then connect to it using lxc-console: lxc-console -n CONTAINER_NAME But there is a problem: When execute lxc-console -n CONTAINER_NAME, then it will come with lxc-console: 'ctx1'