[Lxc-users] lxc-ubuntu: Default to current ubuntu release. If can't match any valid release, use lucid.
Serge Hallyn
serge.hallyn at canonical.com
Thu Jun 23 16:13:09 UTC 2011
Quoting Stéphane Graber (stgraber at ubuntu.com):
>
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
My thought (which I meant to point out in the help output) was
that we should default to the latest LTS. lucid for now, 12.04
when it comes out.
What do you think?
If you think it's better to use the host's release by default,
I'm fine with that.
> ---
> 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
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
More information about the lxc-users
mailing list