[Bug 1005951] Re: lxc-fedora template is broken with fedora 17

Dan Kegel dank at kegel.com
Mon Aug 27 21:18:22 UTC 2012


Yeah, this fixes download, but there are worse problems with fedora >
15:

--- lxc-fedora.orig	2012-08-27 14:08:55.870661264 -0700
+++ lxc-fedora	2012-08-27 14:09:01.966663229 -0700
@@ -138,7 +138,12 @@
             echo "Failed to get a mirror"
             continue
         fi
-        RELEASE_URL="$MIRROR_URL/Packages/fedora-release-$release-1.noarch.rpm"
+        if test $release -lt 17
+        then
+            RELEASE_URL="$MIRROR_URL/Packages/fedora-release-$release-1.noarch.rpm"
+        else
+            RELEASE_URL="$MIRROR_URL/Packages/f/fedora-release-$release-1.noarch.rpm"
+        fi
         echo "Fetching from $RELEASE_URL"
         curl -f "$RELEASE_URL" > $INSTALL_ROOT/fedora-release-$release.noarch.rpm
         if [ $? -ne 0 ]; then

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1005951

Title:
  lxc-fedora template is broken with fedora 17

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1005951/+subscriptions



More information about the Ubuntu-server-bugs mailing list