[lxc-devel] [PATCH] Update plamo template

KATOH Yasufumi karma at jazz.email.ne.jp
Tue Aug 19 06:31:41 UTC 2014


>>> On Mon, 18 Aug 2014 22:37:56 -0400
    in message   "Re: [lxc-devel] [PATCH] Update plamo template"

> [1  <multipart/signed (7bit)>]
> [1.1  <text/plain; iso-8859-1 (quoted-printable)>]
> On Tue, Aug 19, 2014 at 09:29:49AM +0900, TAMUKI Shoichi wrote:
> > - If "installpkg" command does not exist, lxc-plamo temporarily
> >   install the command with static linked tar command into the lxc
> >   cache directory.  The tar command does not refer to passwd/group
> >   files, which means that only a few files/directories are extracted
> >   with wrong 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 <tamuki at linet.gr.jp>

> Acked-by: Stéphane Graber <stgraber at ubuntu.com>

Acked-by: KATOH Yasufumi <karma at jazz.email.ne.jp>

> Can you perhaps also send a patch to use an alternate default mirror?
> It's been over 20 days since I last managed to grab the needed files to
> produce a plamo image...

> > ---
> >  templates/lxc-plamo.in | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> > 
> > diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in
> > index 24ecb7e..82a9e78 100644
> > --- a/templates/lxc-plamo.in
> > +++ b/templates/lxc-plamo.in
> > @@ -128,6 +128,7 @@ install_plamo() {
> >        echo "Installing 'installpkg' command into $dlcache/sbin..."
> >        ( cd $dlcache ; tar xpJf hdsetup-*.txz ; rm -rf tmp usr var )
> >        sed -i "/ldconfig/!s@/sbin@$dlcache&@g" $dlcache/sbin/installpkg*
> > +      sed -i "/^TAR=/s at tar@`which tar`@g" $dlcache/sbin/installpkg2
> >        PATH=$dlcache/sbin:$PATH
> >      fi
> >      echo "Installing packages to $rtcache..."
> > @@ -148,6 +149,7 @@ install_plamo() {
> >  
> >  configure_plamo() {
> >    # create /dev
> > +  chmod    666 $rootfs/dev/null
> >    mknod -m 666 $rootfs/dev/zero c 1 5
> >    chmod    666 $rootfs/dev/random
> >    mknod -m 666 $rootfs/dev/urandom c 1 9
> > @@ -303,7 +305,7 @@ cleanup() {
> >  usage() {
> >    cat <<- EOF
> >  	$prog [-h|--help] -p|--path=<path> -n|--name=<name> --rootfs=<rootfs>
> > -	          [--clean] [-r|--release=<release>] [-a|--arch=<arch>]
> > +	          [-c|--clean] [-r|--release=<release>] [-a|--arch=<arch>]
> >  	          [-b|--bindhome=<user>]
> >  	release: $release
> >  	arch: x86 or x86_64: defaults to host arch
> > -- 
> > 1.9.0
> > _______________________________________________
> > lxc-devel mailing list
> > lxc-devel at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-devel

> -- 
> Stéphane Graber
> Ubuntu developer
> http://www.ubuntu.com
> [1.2 Digital signature <application/pgp-signature (7bit)>]

> [2  <text/plain; utf-8 (base64)>]
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list