]> 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, 16 Jan 2015 23:09:28 +0000 (18:09 -0500)
Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-centos.in

index c7d2b892a0697fae347b9c2250ec09277b09353c..c2b4db601f400972e09ecb9ebbae35c9c5e8f6a0 100644 (file)
@@ -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