]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-centos: pass releasever parameter to yum
authorAlexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Fri, 16 Jan 2015 10:37:00 +0000 (17:37 +0700)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Jan 2015 08:58:45 +0000 (09:58 +0100)
Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-centos.in

index a236bde88e19faef6a4a57c751fde2da21e3506d..2902acfaabad0f50fc042891b3501c8494e2a5d3 100644 (file)
@@ -403,7 +403,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