mirror of
git://github.com/lxc/lxc
synced 2025-08-29 17:49:50 +00:00
debian template: set arch when dpkg doesn't exist on host
Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
fe19f236a2
commit
6efdcb6a3c
@ -172,7 +172,18 @@ install_debian()
|
||||
return 1
|
||||
fi
|
||||
|
||||
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"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Checking cache download in $cache/rootfs-$SUITE-$arch ... "
|
||||
if [ ! -e "$cache/rootfs-$SUITE-$arch" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user