[lxc-devel] [PATCH 1/2 v2] Add support for new target plamo to configure.ac

2015-12-08 Thread TAMUKI Shoichi
Add support for new target plamo to specify the linux distribution. Plamo Linux uses sysvinit. Signed-off-by: KATOH Yasufumi Signed-off-by: TAMUKI Shoichi --- configure.ac | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8dae3ad

Re: [lxc-devel] [PATCH 1/2] Add support for new target plamo to configure.ac

2015-12-08 Thread TAMUKI Shoichi
systemd, upstart, distro [default=distro] > > > > That means autoconf is able to format help strings including white- > > spaces (spaces, tabs, and newlines) properly. I do not think it makes > > it harder to read in this case. > > I was just thinking of when w

Re: [lxc-devel] [PATCH 1/2] Add support for new target plamo to configure.ac

2015-12-08 Thread TAMUKI Shoichi
out 80 chars > > because the line is too long. > > > > Signed-off-by: KATOH Yasufumi > > Signed-off-by: TAMUKI Shoichi > > --- > > configure.ac | 10 +++--- > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > diff --git a/confi

[lxc-devel] [PATCH 2/2] Fold dnsmasq command line in lxc-net.in

2015-12-07 Thread TAMUKI Shoichi
Fold dnsmasq command line at about 80 chars because the line is too long. Signed-off-by: TAMUKI Shoichi --- config/init/common/lxc-net.in | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/init/common/lxc-net.in b/config/init/common/lxc-net.in index efe64c1

[lxc-devel] [PATCH 1/2] Add support for new target plamo to configure.ac

2015-12-07 Thread TAMUKI Shoichi
Add support for new target plamo to specify the linux distribution. Plamo Linux uses sysvinit. Also, fold distro line at about 80 chars because the line is too long. Signed-off-by: KATOH Yasufumi Signed-off-by: TAMUKI Shoichi --- configure.ac | 10 +++--- 1 file changed, 7 insertions

[lxc-devel] [PATCH v2] lxc-plamo: mount tmpfs on /dev/shm

2014-11-19 Thread TAMUKI Shoichi
Do mkdir $rootfs/dev/shm and then mount tmpfs on /dev/shm. Signed-off-by: TAMUKI Shoichi --- config/templates/plamo.common.conf.in | 1 + templates/lxc-plamo.in| 1 + 2 files changed, 2 insertions(+) diff --git a/config/templates/plamo.common.conf.in b/config/templates

Re: [lxc-devel] [PATCH] lxc-plamo: mount tmpfs on /dev/shm

2014-11-19 Thread TAMUKI Shoichi
gentoo template uses > > rw,nosuid,nodev,relatime,mode=755 Ah, I see. I will soon the revised patch. Regards, TAMUKI Shoichi ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel

[lxc-devel] [PATCH] lxc-plamo: mount tmpfs on /dev/shm

2014-11-18 Thread TAMUKI Shoichi
Do mkdir $rootfs/dev/shm and then mount tmpfs on /dev/shm. Signed-off-by: TAMUKI Shoichi --- config/templates/plamo.common.conf.in | 1 + templates/lxc-plamo.in| 1 + 2 files changed, 2 insertions(+) diff --git a/config/templates/plamo.common.conf.in b/config/templates

Re: [lxc-devel] Download template images default password

2014-11-03 Thread TAMUKI Shoichi
regular templates in the source tree? > I however don't expect this to happen overnight and so I think that > first working towards providing a similar feature set across templates > and offer more consistency is a very worthwhile goal in the near f

Re: [lxc-devel] Download template images default password

2014-10-29 Thread TAMUKI Shoichi
e password using chroot. Thank you for your work. I am looking forward to that. There is one point that I would like the password treatment to have the same behavior between the following cases: - using the distro-specific template with '-t' option to lxc-create - using download tem

Re: [lxc-devel] [PATCH v2 3/3] Improve setting the default password in a new container

2014-10-29 Thread TAMUKI Shoichi
have the same behavior between using the template with '-t' option to lxc-create and using download template. So, I think that creating passwords should be done after the template runs. That means, most of the processing about creating passwords in the template will be moved to the point aft

Re: [lxc-devel] [PATCH v2 3/3] Improve setting the default password in a new container

2014-10-10 Thread TAMUKI Shoichi
Hello Serge, From: TAMUKI Shoichi Subject: Re: [lxc-devel] [PATCH v2 3/3] Improve setting the default password in a new container Date: Sat, 11 Oct 2014 11:57:01 +0900 > To solve that, instead of preparing template.chpasswd files, the > template should inform the user name to be chang

Re: [lxc-devel] [PATCH v2 3/3] Improve setting the default password in a new container

2014-10-10 Thread TAMUKI Shoichi
ith '-t' option to lxc-create. It can not be used by non- priv users. > Please immediately table this patch until further discussion can be > completed and a consensus achieved. Sure, I would like to discuss the approach with the people interested. Regards, T

Re: [lxc-devel] [PATCH v2 3/3] Improve setting the default password in a new container

2014-10-10 Thread TAMUKI Shoichi
is to be > > changed. If the target *.chpasswd file does not exist, no password is > > changed in a new container. > > > > Signed-off-by: TAMUKI Shoichi > > Hi. > > After a "brief" look over this patch I didn't see any technical problems, &g

[lxc-devel] [PATCH v2 3/3] Improve setting the default password in a new container

2014-10-08 Thread TAMUKI Shoichi
whose password is to be changed. If the target *.chpasswd file does not exist, no password is changed in a new container. Signed-off-by: TAMUKI Shoichi --- v2: - adjust to fit with the other patches. config/templates/Makefile.am | 27 +++- config/templates/altlinux.chpasswd

[lxc-devel] [PATCH v2 1/3] lxccontainer.c: split up create_run_template()

2014-10-08 Thread TAMUKI Shoichi
Split figureout_rootfs() off from create_run_template() to allow common use of the function. Also, add the tweak to free the bdev. Signed-off-by: TAMUKI Shoichi --- v2: - add the tweak to free the bdev. - correct misspelling in commit message. src/lxc/lxccontainer.c | 108

[lxc-devel] [PATCH v2 2/3] lxccontainer.c: split up create_run_template() again

2014-10-08 Thread TAMUKI Shoichi
Split prepend_lxc_usernsexec() off from create_run_template() to allow common use of the function. Signed-off-by: TAMUKI Shoichi --- v2: - adjust to fit with the other patches. - correct misspelling in commit message. src/lxc/lxccontainer.c | 230

Re: [lxc-devel] [PATCH 1/3] lxccontainer.c: split up cleate_run_template()

2014-10-08 Thread TAMUKI Shoichi
patches to fit without this patch later. > > No no, I think your patch is fine, it just needs the tweak to free > the bdev. Oh, I see. I will soon post the revised patch set. Regards, TAMUKI Shoichi ___ lxc-devel mailing list lxc-devel@l

Re: [lxc-devel] [PATCH 1/3] lxccontainer.c: split up cleate_run_template()

2014-10-08 Thread TAMUKI Shoichi
ed figureout_rootfs() off in a mechanical manner. Anyway, I agree with you from a viewpoint of strdup() and free(). Ok, I will revise the other patches to fit without this patch later. Regards, TAMUKI Shoichi ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel

Re: [lxc-devel] [PATCH 1/3] lxccontainer.c: split up

2014-10-06 Thread TAMUKI Shoichi
Hello, From: TAMUKI Shoichi Subject: [lxc-devel] [PATCH 1/3] lxccontainer.c: split up cleate_run_template() Date: Mon, 06 Oct 2014 19:30:20 +0900 > Split figureout_rootfs() off from cleate_run_template() to allow > common use of the function. > > Signed-off-by: TAMUKI Shoichi I m

[lxc-devel] [PATCH 3/3] Improve setting the default password in a new container

2014-10-06 Thread TAMUKI Shoichi
whose password is to be changed. If the target *.chpasswd file does not exist, no password is changed in a new container. Signed-off-by: TAMUKI Shoichi --- config/templates/Makefile.am | 27 +++- config/templates/altlinux.chpasswd | 1 + config/templates/archlinux.chpasswd

[lxc-devel] [PATCH 2/3] lxccontainer.c: split up cleate_run_template() again

2014-10-06 Thread TAMUKI Shoichi
Split prepend_lxc_usernsexec() off from cleate_run_template() to allow common use of the function. Signed-off-by: TAMUKI Shoichi --- src/lxc/lxccontainer.c | 230 ++--- 1 file changed, 121 insertions(+), 109 deletions(-) diff --git a/src/lxc

[lxc-devel] [PATCH 1/3] lxccontainer.c: split up cleate_run_template()

2014-10-06 Thread TAMUKI Shoichi
Split figureout_rootfs() off from cleate_run_template() to allow common use of the function. Signed-off-by: TAMUKI Shoichi --- src/lxc/lxccontainer.c | 104 +++-- 1 file changed, 57 insertions(+), 47 deletions(-) diff --git a/src/lxc/lxccontainer.c b

Re: [lxc-devel] Request for update Jenkins script for plamo images

2014-09-11 Thread TAMUKI Shoichi
Hello Stephane, From: TAMUKI Shoichi Subject: Re: [lxc-devel] Request for update Jenkins script for plamo images Date: Sun, 31 Aug 2014 17:19:42 +0900 > > Perhaps, we should do similar workaround for producing another > > distribution (centos, debian, fedora, gentoo, opensuse

[lxc-devel] [PATCH] lxc-gentoo: keep original uid/gid of files/dirs when installing

2014-09-11 Thread TAMUKI Shoichi
Call tar with --numeric-owner option to use numbers for user/group names because the whole uid/gid in rootfs should be consistently unchanged as in original stage3 tarball and private portage. Signed-off-by: TAMUKI Shoichi --- templates/lxc-gentoo.in | 14 ++ 1 file changed, 10

[lxc-devel] [PATCH] lxc-plamo: keep original uid/gid of files/dirs when installing

2014-09-04 Thread TAMUKI Shoichi
Regardless of whether "installpkg" command exists or not, install the command temporarily with static linked tar command into the lxc cache directory to keep the original uid/gid of files/directories. Also, use sed command instead of ed command for simplicity. Signed-off-by: TAMU

Re: [lxc-devel] Request for update Jenkins script for plamo images

2014-09-04 Thread TAMUKI Shoichi
Hello Stephane, From: TAMUKI Shoichi Subject: Re: [lxc-devel] Request for update Jenkins script for plamo images Date: Sun, 31 Aug 2014 17:17:50 +0900 > So, suppose installing rootfs does in the same way as tar with > --numeric-option, and calling tar with --numeric-owner when arc

Re: [lxc-devel] Request for update Jenkins script for plamo images

2014-08-31 Thread TAMUKI Shoichi
the useradd/groupadd workaround in the Jenkins scrirpt. Thanks in advance. Regards, TAMUKI Shoichi ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel

Re: [lxc-devel] Request for update Jenkins script for plamo images

2014-08-31 Thread TAMUKI Shoichi
Hello Stephane, From: TAMUKI Shoichi Subject: Re: [lxc-devel] Request for update Jenkins script for plamo images Date: Thu, 28 Aug 2014 16:46:45 +0900 > Perhaps, we should do similar workaround for producing another > distribution (centos, debian, fedora, gentoo, opensuse, and oracle) &g

Re: [lxc-devel] Request for update Jenkins script for plamo images

2014-08-31 Thread TAMUKI Shoichi
e system. Therefore, we should not calling tar with --numeric-owner option in the Jenkins script. Regards, TAMUKI Shoichi ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel

Re: [lxc-devel] [PATCH v2] Remove a comment part from a config value

2014-08-28 Thread TAMUKI Shoichi
tion for the following case. lxc.rootfs = /mnt/rootfs.test#01 I think that a hash mark ("#") as a comment must be at the beginning of a line. Regards, TAMUKI Shoichi ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel

Re: [lxc-devel] [PATCH] Remove a comment part from a config value

2014-08-28 Thread TAMUKI Shoichi
value. > > Signed-off-by: KATOH Yasufumi Reviewed-by: TAMUKI Shoichi > --- > src/lxc/confile.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/lxc/confile.c b/src/lxc/confile.c > index 5de1241..8aab5d0 100644 > --- a/src/lxc/confile.c > +++ b/sr

Re: [lxc-devel] Request for update Jenkins script for plamo images

2014-08-28 Thread TAMUKI Shoichi
Hello Stephane, From: TAMUKI Shoichi Subject: [lxc-devel] Request for update Jenkins script for plamo images (Re: [PATCH] Update plamo template) Date: Tue, 26 Aug 2014 08:13:10 +0900 > According to the Jenkins log, I will suggest you to insert the > commands like below: > > =

[lxc-devel] Request for update Jenkins script for plamo images (Re: [PATCH] Update plamo template)

2014-08-25 Thread TAMUKI Shoichi
Hello Stephane, From: TAMUKI Shoichi Subject: Re: [lxc-devel] [PATCH] Update plamo template Date: Tue, 19 Aug 2014 12:30:07 +0900 > One more thing is about the user/group ownership. I investigated > /etc/{passwd,group} between Ubuntu and Plamo Linux, and found that > there are some u

Re: [lxc-devel] [PATCH] Update plamo template

2014-08-18 Thread TAMUKI Shoichi
done Thanks in advance. Regards, TAMUKI Shoichi ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel

[lxc-devel] [PATCH] Update plamo template

2014-08-18 Thread TAMUKI Shoichi
user/group ownership. To avoid this, the installpkg command now uses the standard tar command in the system. - Change mode to 666 for $rootfs/dev/null to allow write access for all users. - Small fix in usage message. Signed-off-by: TAMUKI Shoichi --- templates/lxc-plamo.in | 4 +++- 1 file

[lxc-devel] [PATCH] Fix to work lxc-destroy with unprivileged containers on recent kernel

2014-06-28 Thread TAMUKI Shoichi
Change idmap_add_id() to add both ID_TYPE_UID and ID_TYPE_GID entries to an existing lxc_conf, not just an ID_TYPE_UID entry, so as to work lxc-destroy with unprivileged containers on recent kernel. Signed-off-by: TAMUKI Shoichi --- src/lxc/conf.c | 49

[lxc-devel] [PATCH v2] Fix to work lxc-start with unprivileged containers on recent kernel

2014-06-27 Thread TAMUKI Shoichi
Change chown_mapped_root() to map in both the root uid and gid, not just the uid, so as to work lxc-start with unprivileged containers on recent kernel. Signed-off-by: TAMUKI Shoichi Signed-off-by: KATOH Yasufumi --- The patch has been revised due to amending the explanation of

[lxc-devel] [PATCH] Fix to work lxc-start with unprivileged containers on recent kernel

2014-06-27 Thread TAMUKI Shoichi
Change chown_mapped_root() to map in both the root uid and gid, not just the uid, so as to work lxc-start with unprivileged containers on recent kernel. Signed-off-by: TAMUKI Shoichi Signed-off-by: KATOH Yasufumi --- src/lxc/conf.c | 93

[lxc-devel] [PATCH] lxc-plamo: fix for configuring network interface

2014-06-02 Thread TAMUKI Shoichi
Fix configure_plamo so as not to configure wireless network interface in containers even if the host uses wireless network interface. Signed-off-by: TAMUKI Shoichi --- templates/lxc-plamo.in | 4 1 file changed, 4 insertions(+) diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in

[lxc-devel] [PATCH v2] lxc-plamo: various small changes

2014-02-08 Thread TAMUKI Shoichi
: TAMUKI Shoichi Signed-off-by: KATOH Yasufumi --- templates/lxc-plamo.in | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in index 1db5645..4e04b22 100644 --- a/templates/lxc-plamo.in +++ b

Re: [lxc-devel] [PATCH] lxc-plamo: various small changes

2014-02-08 Thread TAMUKI Shoichi
o keep manually rebasing their > patches. We spent enough time to brush up and review for the initial template, however I overlooked this mistake and now have noticed that. I think that correcting the option order makes sense and easy to understand. Thanks in advance. Regards, TAMUKI Shoichi ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel

[lxc-devel] [PATCH] lxc-plamo: various small changes

2014-02-07 Thread TAMUKI Shoichi
- Change redirection of fd 200 to 9 - Fix to fit with change of init script - Change option order (trivial) Signed-off-by: TAMUKI Shoichi --- templates/lxc-plamo.in | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/lxc-plamo.in b/templates

[lxc-devel] [PATCH] templates: improve refusing to run unprivileged

2014-02-06 Thread TAMUKI Shoichi
For all templates except lxc-ubuntu-cloud and lxc-download, detect not only --mapped-uid but also --mapped-gid and error out. Detecting will not be done after -- parameter because of non-option parameters. Also, change the mode of lxc-archlinux.in 100755 to 100644. Signed-off-by: TAMUKI Shoichi

Re: [lxc-devel] [PATCH] lxc-plamo: change redirection of fd and improve option parsing

2014-02-06 Thread TAMUKI Shoichi
Hello, From: TAMUKI Shoichi Subject: Re: [lxc-devel] [PATCH] lxc-plamo: change redirection of fd and improve option parsing Date: Thu, 06 Feb 2014 18:30:46 +0900 > > However, in most cases, people may prefer the complete notation (i.e., > > --mapped-uid), so leaving the other a

Re: [lxc-devel] [PATCH] lxc-plamo: change redirection of fd and improve option parsing

2014-02-06 Thread TAMUKI Shoichi
Hello, From: TAMUKI Shoichi Subject: Re: [lxc-devel] [PATCH] lxc-plamo: change redirection of fd and improve option parsing Date: Thu, 06 Feb 2014 17:32:59 +0900 > However, in most cases, people may prefer the complete notation (i.e., > --mapped-uid), so leaving the other abbreviations

Re: [lxc-devel] [PATCH] lxc-plamo: change redirection of fd and improve option parsing

2014-02-06 Thread TAMUKI Shoichi
processing. --m --ma --map --mapp --mappe --mapped --mapped- --mapped-u --mapped-ui --mapped-uid Thus, I think "[PATCH] templates: Refuse to run unprivileged" should detect not only --mapped-uid option but also the abbreviations above. That is why I cha

[lxc-devel] [PATCH] templates: improve option parsing

2014-02-06 Thread TAMUKI Shoichi
: TAMUKI Shoichi --- templates/lxc-alpine.in | 5 +++-- templates/lxc-altlinux.in | 31 --- templates/lxc-archlinux.in| 27 ++- templates/lxc-busybox.in | 17 + templates/lxc-centos.in | 23

[lxc-devel] [PATCH] lxc-plamo: change redirection of fd and improve option parsing

2014-02-05 Thread TAMUKI Shoichi
Signed-off-by: TAMUKI Shoichi --- templates/lxc-plamo.in | 71 +++--- 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in index e9f681e..311067f 100644 --- a/templates/lxc-plamo.in +++ b

Re: [lxc-devel] Last minute template addition - universal image based template

2014-02-02 Thread TAMUKI Shoichi
++---+ | oracle | x86 | x86_64 | -- | -- | ++--+++---+ | plamo | x86 | x86_64 | -- | -- | ++--+++---+ | ubuntu | i386 | amd64 | armhf | armel | ++--+++---+ I think it's ok to unify arch names as internal

Re: [lxc-devel] Last minute template addition - universal image based template

2014-01-26 Thread TAMUKI Shoichi
console output of amd64,5.x,full, and I saw "No space left on device" messages during copying root cache to rootfs at the nearly end of the log. Perhaps, the full rootfs image of Plamo container may be too large to build on Jenkins server. :-( Regards, TAMUKI Shoichi

Re: [lxc-devel] Last minute template addition - universal image based

2014-01-23 Thread TAMUKI Shoichi
quot;00_base 01_minimum 02_x11 03_xclassics 04_xapps 05_ext 06_xfce 07_kde 08_tex 09_kernel 10_lof 11_mate" EXTRACTGRS="AVtool Education Hamradio Haskell MUA Virtualization" IGNOREPKGS="" ADDONPKGS="" -