[lxc-devel] [PATCH] lxc-centos: pass releasever parameter to yum

Alexander Vladimirov alexander.idkfa.vladimirov at gmail.com
Fri Jan 16 10:37:00 UTC 2015


Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov at gmail.com>
---
allow lxc-centos template install from arch and probably other non-centos hosts
 templates/lxc-centos.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in
index c7d2b89..c2b4db6 100644
--- a/templates/lxc-centos.in
+++ b/templates/lxc-centos.in
@@ -409,7 +409,7 @@ download_centos()
 
     # download a mini centos into a cache
     echo "Downloading centos minimal ..."
-    YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
+    YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever=$release"
     PKG_LIST="yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils"
 
     # use temporary repository definition
-- 
2.2.2



More information about the lxc-devel mailing list