[lxc-devel] [PATCH 1/3] lxc-fedora.in: Add missing default release variable

Tuomas Suutari tuomas.suutari at gmail.com
Wed Oct 26 14:29:41 UTC 2011


The text says that 14 is default, but release=14 was not set anywhere
in the script.

Signed-off-by: Tuomas Suutari <tuomas.suutari at gmail.com>
---
 templates/lxc-fedora.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in
index d35600a..8588aef 100644
--- a/templates/lxc-fedora.in
+++ b/templates/lxc-fedora.in
@@ -317,6 +317,7 @@ if [ -z "$release" ]; then
         release=$(cat /etc/fedora-release |awk '/^Fedora/ {print $3}')
     else
         echo "This is not a fedora host and release missing, defaulting to 14. use -R|--release to specify release"
+        release=14
     fi
 fi
 
-- 
1.7.5.4





More information about the lxc-devel mailing list