Signed-off-by: Stéphane Graber <[email protected]>
---
 templates/lxc-ubuntu.in |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in
index 4f75336..b49542c 100644
--- a/templates/lxc-ubuntu.in
+++ b/templates/lxc-ubuntu.in
@@ -168,6 +168,12 @@ copy_configuration()
     rootfs=$2
     name=$3
 
+    if [ "$arch" = "i386" ]; then
+        lxc_arch="i686"
+    else
+        lxc_arch=$arch
+    fi
+
     cat <<EOF >> $path/config
 lxc.utsname = $name
 
@@ -175,7 +181,7 @@ lxc.tty = 4
 lxc.pts = 1024
 lxc.rootfs = $rootfs
 lxc.mount  = $path/fstab
-lxc.arch = $arch
+lxc.arch = $lxc_arch
 
 lxc.cgroup.devices.deny = a
 # /dev/null and zero
@@ -429,10 +435,6 @@ do
     esac
 done
 
-if [ "$arch" == "i386" ]; then
-    arch=i686
-fi
-
 if [ ! -z "$clean" -a -z "$path" ]; then
     clean || exit 1
     exit 0
-- 
1.7.5.4


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to