]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-ubuntu: Default to current ubuntu release.
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 25 Jun 2011 13:17:47 +0000 (15:17 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Sat, 25 Jun 2011 13:17:47 +0000 (15:17 +0200)
If can't match any valid release, use lucid.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
templates/lxc-ubuntu.in

index 0a55f4cd507b51347d7a0d4091a5ec2e03ff4fee..439e1d0c5e579a40ea0ec6ff1525a71ab65dc4b6 100644 (file)
@@ -391,6 +391,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=
 arch=$(arch)