[Lxc-users] [PATCH 2/2] fix RELEAE_URL to not hardcode the arch

Ramez Hanna rhanna at informatiq.org
Mon Aug 8 08:54:54 UTC 2011


>From e959e5d5661841c5546b07575e7f3da84ac0ba7f Mon Sep 17 00:00:00 2001
From: InformatiQ <rhanna at informatiq.org>
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




More information about the lxc-users mailing list