Re: [Lxc-users] lxc-ubuntu: Default to current ubuntu release. If can't match any valid release, use lucid.
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-ubuntu: Default to current ubuntu release. If can't match any valid release, use lucid.
On Thu, 2011-06-23 at 11:13 -0500, Serge Hallyn wrote: Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@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. I kind of like having all the defaults set to what I'm currently running. One thing that bothers me is that we can't give the distro, arch, ... as parameter when doing a lxc-create (which I'm assuming is the most common way of using our templates). Should we change the template to prompt the user instead? showing the supported values for the distro and architecture (at least) and using the current system's values as a default? -- Stéphane Graber Ubuntu developer http://www.ubuntu.com signature.asc Description: This is a digitally signed message part -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-ubuntu: Default to current ubuntu release. If can't match any valid release, use lucid.
On Thu, 2011-06-23 at 13:27 -0400, Stéphane Graber wrote: On Thu, 2011-06-23 at 11:13 -0500, Serge Hallyn wrote: Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@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. I kind of like having all the defaults set to what I'm currently running. One thing that bothers me is that we can't give the distro, arch, ... as parameter when doing a lxc-create (which I'm assuming is the most common way of using our templates). Should we change the template to prompt the user instead? showing the supported values for the distro and architecture (at least) and using the current system's values as a default? Looking at some e-mail from Serge I now saw that -- options should be working though it's not really intuitive as I can't find any reference to it doing lxc-create --help. So I'd suggest to either have the script prompt the user or make sure the help is up to date and the template options are easy enough to find for our users (including their default values). -- Stéphane Graber Ubuntu developer http://www.ubuntu.com signature.asc Description: This is a digitally signed message part -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-ubuntu: Default to current ubuntu release. If can't match any valid release, use lucid.
Quoting Stéphane Graber (stgra...@ubuntu.com): On Thu, 2011-06-23 at 11:13 -0500, Serge Hallyn wrote: Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@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. I kind of like having all the defaults set to what I'm currently running. Me too, but I had a feeling that most users would want an LTS. One thing that bothers me is that we can't give the distro, arch, ... as parameter when doing a lxc-create (which I'm assuming is the most common What do you mean? lxc-create -t ubuntu -f /etc/lxc.conf -n n1 -- -a i386 -r natty Is that not what you mean? way of using our templates). Should we change the template to prompt the user instead? showing the supported values for the distro and architecture (at least) and using the current system's values as a default? By default no, but we could add a [-i|--interactive] option to the ubuntu template? -serge -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users