[lxc-devel] [PATCH] debian template: set arch when dpkg doesn't exist on host
Dwight Engen
dwight.engen at oracle.com
Thu Apr 4 16:38:35 UTC 2013
On Thu, 4 Apr 2013 09:10:50 -0500
Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> Quoting Dwight Engen (dwight.engen at oracle.com):
> > Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
>
> Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
>
> though,
>
> > ---
> > templates/lxc-debian.in | 13 ++++++++++++-
> > 1 file changed, 12 insertions(+), 1 deletion(-)
> >
> > diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
> > index 7bbc46b..e36523c 100644
> > --- a/templates/lxc-debian.in
> > +++ b/templates/lxc-debian.in
> > @@ -172,7 +172,18 @@ install_debian()
> > return 1
> > fi
> >
> > - arch=$(dpkg --print-architecture)
> > + if which dpkg >/dev/null 2>&1 ; then
> > + arch=$(dpkg --print-architecture)
> > + else
> > + arch=$(arch)
> > + if [ "$arch" = "i686" ]; then
> > + arch="i386"
> > + elif [ "$arch" = "x86_64" ]; then
> > + arch="amd64"
> > + elif [ "$arch" = "armv7l" ]; then
> > + arch="armhf"
>
> should armv6l be added (per Michael's patch for fedora template) for
> raspberry pi?
Possibly, but I'm not sure what the debian "repo" name that armv6l
should map to is (armhf also?). I'm happy to update the patch with the
correct one :) BTW this chunk was copied from the Ubuntu template, so
we should add it there too.
> > + fi
> > + fi
> >
> > echo "Checking cache download in
> > $cache/rootfs-$SUITE-$arch ... " if [ ! -e
> > "$cache/rootfs-$SUITE-$arch" ]; then --
> > 1.7.12.3
> >
> >
> > ------------------------------------------------------------------------------
> > Minimize network downtime and maximize team effectiveness.
> > Reduce network management and security costs.Learn how to hire
> > the most talented Cisco Certified professionals. Visit the
> > Employer Resources Portal
> > http://www.cisco.com/web/learning/employer_resources/index.html
> > _______________________________________________
> > Lxc-devel mailing list
> > Lxc-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/lxc-devel
More information about the lxc-devel
mailing list