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

diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in
index b49542c..4c72aee 100644
--- a/templates/lxc-ubuntu.in
+++ b/templates/lxc-ubuntu.in
@@ -396,6 +396,15 @@ fi
 eval set -- "$options"
 
 release=lucid
+if [ -f /etc/lsb-release ]; then
+    . /etc/lsb-release
+    case "$DISTRIB_CODENAME" in
+        lucid|maverick|natty|oneiric)
+            release=$DISTRIB_CODENAME
+        ;;
+    esac
+fi
+
 bindhome=
 
 # Code taken from debootstrap
-- 
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