]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Convert all Debian (and derivative) templates from using 'arch' to using 'dpkg -...
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 24 May 2011 18:19:08 +0000 (14:19 -0400)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 26 May 2011 20:58:23 +0000 (22:58 +0200)
templates/lxc-debian.in
templates/lxc-lenny.in
templates/lxc-lucid.in
templates/lxc-maverick.in
templates/lxc-natty.in

index 27c041e6d29b07ef5d8491e2c9459de18f19644a..75a33a4064c877be59573e0fd8be9e833e7cbc12 100644 (file)
@@ -158,14 +158,7 @@ install_debian()
            return 1
        fi
 
-       arch=$(arch)
-       if [ "$arch" == "x86_64" ]; then
-           arch=amd64
-       fi
-
-       if [ "$arch" == "i686" ]; then
-           arch=i386
-       fi
+       arch=$(dpkg --print-architecture)
 
        echo "Checking cache download in $cache/rootfs-$SUITE-$arch ... "
        if [ ! -e "$cache/rootfs-$SUITE-$arch" ]; then
index 0f3798891854fbee66bf3fd1a74b6216052abe17..3720dced2f4fbf4d7e12e78d3f8af9bdcb1b6923 100644 (file)
@@ -148,14 +148,7 @@ install_debian()
            return 1
        fi
 
-       arch=$(arch)
-       if [ "$arch" == "x86_64" ]; then
-           arch=amd64
-       fi
-
-       if [ "$arch" == "i686" ]; then
-           arch=i386
-       fi
+       arch=$(dpkg --print-architecture)
 
        echo "Checking cache download in $cache/rootfs-$SUITE-$arch ... "
        if [ ! -e "$cache/rootfs-$SUITE-$arch" ]; then
index fe613139bba072fcd056b08515d2ceeaba4d5df1..88a4618e297accd2684e0c8835ebe5b43ea28a29 100644 (file)
@@ -194,14 +194,7 @@ install_ubuntu()
            return 1
        fi
 
-       arch=$(arch)
-       if [ "$arch" == "x86_64" ]; then
-           arch=amd64
-       fi
-
-       if [ "$arch" == "i686" ]; then
-           arch=i386
-       fi
+       arch=$(dpkg --print-architecture)
 
        echo "Checking cache download in $cache/rootfs-$arch ... "
        if [ ! -e "$cache/rootfs-$arch" ]; then
index 0a8ac8e9301be20f8c42c5510d0e7f29538adcbd..23ecefab0eafb882177d52d54d1b2f2e68ab02b0 100644 (file)
@@ -117,14 +117,7 @@ install_ubuntu()
            return 1
        fi
 
-       arch=$(arch)
-       if [ "$arch" == "x86_64" ]; then
-           arch=amd64
-       fi
-
-       if [ "$arch" == "i686" ]; then
-           arch=i386
-       fi
+       arch=$(dpkg --print-architecture)
 
        echo "Checking cache download in $cache/rootfs-$arch ... "
        if [ ! -e "$cache/rootfs-$arch" ]; then
index e7e38594b5bd250d36381af2c311f6c88a2c10af..8211c1edfcdd67708b8d98bba79c5ff536d8d6ce 100644 (file)
@@ -118,14 +118,7 @@ install_ubuntu()
            return 1
        fi
 
-       arch=$(arch)
-       if [ "$arch" == "x86_64" ]; then
-           arch=amd64
-       fi
-
-       if [ "$arch" == "i686" ]; then
-           arch=i386
-       fi
+       arch=$(dpkg --print-architecture)
 
        echo "Checking cache download in $cache/rootfs-$arch ... "
        if [ ! -e "$cache/rootfs-$arch" ]; then