>From e959e5d5661841c5546b07575e7f3da84ac0ba7f Mon Sep 17 00:00:00 2001
From: InformatiQ <[email protected]>
Date: Thu, 14 Jul 2011 00:41:03 +0300
Subject: [PATCH 2/2] fix RELEAE_URL to not hardcode the arch

---
 templates/lxc-fedora.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in
index e26d73a..0262013 100644
--- a/templates/lxc-fedora.in
+++ b/templates/lxc-fedora.in
@@ -111,7 +111,7 @@ download_fedora()
     echo "Downloading fedora minimal ..."
     YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
     PKG_LIST="yum initscripts passwd rsyslog vim-minimal dhclient
chkconfig rootfiles policycoreutils"
-    
RELEASE_URL="http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/$release/Everything/x86_64/os/Packages/fedora-release-$release-1.noarch.rpm";
+    
RELEASE_URL="http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/$release/Everything/$arch/os/Packages/fedora-release-$release-1.noarch.rpm";
     curl $RELEASE_URL > $INSTALL_ROOT/fedora-release-$release.noarch.rpm

     mkdir -p $INSTALL_ROOT/var/lib/rpm
-- 
1.7.6

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to