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

Stéphane Graber stgraber at ubuntu.com
Fri Jan 16 23:04:45 UTC 2015


On Fri, Jan 16, 2015 at 05:37:00PM +0700, Alexander Vladimirov wrote:
> Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov at gmail.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.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
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20150116/5b0e83e1/attachment.sig>


More information about the lxc-devel mailing list