[Pkg-libvirt-commits] [libguestfs] 56/156: builder: Update centos.sh to add CentOS 7 QA.

Hilko Bengen bengen at moszumanska.debian.org
Sat Aug 30 08:25:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit 6e780e0c12c0383757184403ef2378f37f9ef89f
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri Jun 20 11:06:23 2014 +0100

    builder: Update centos.sh to add CentOS 7 QA.
    
    (cherry picked from commit 54c77f99cc0dada27a3e13e22a6afd4a69a98576)
---
 builder/website/centos.sh | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/builder/website/centos.sh b/builder/website/centos.sh
index 0b7f994..2c892af 100755
--- a/builder/website/centos.sh
+++ b/builder/website/centos.sh
@@ -1,6 +1,6 @@
 #!/bin/bash -
 # virt-builder
-# Copyright (C) 2013 Red Hat Inc.
+# Copyright (C) 2013-2014 Red Hat Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -30,9 +30,19 @@ version=$1
 output=centos-$version
 tmpname=tmp-$(tr -cd 'a-f0-9' < /dev/urandom | head -c 8)
 
-# We rebuild this every time there is a new 6.x release, and bump
-# the revision in the index.
-tree=http://mirror.bytemark.co.uk/centos/$version/os/x86_64/
+case $version in
+    6)
+        # We rebuild this every time there is a new 6.x release, and bump
+        # the revision in the index.
+        tree=http://mirror.bytemark.co.uk/centos/$version/os/x86_64/
+        major=6
+        ;;
+    7qa)
+        # QA (pre-) release.
+        tree=http://buildlogs.centos.org/centos/7/os/x86_64-20140614/
+        major=7
+        ;;
+esac
 
 rm -f $output $output.old $output.xz
 
@@ -76,7 +86,7 @@ virt-install \
     --name=$tmpname \
     --ram=2048 \
     --cpu=host --vcpus=2 \
-    --os-type=linux --os-variant=rhel$version \
+    --os-type=linux --os-variant=rhel$major \
     --initrd-inject=$ks \
     --extra-args="ks=file:/`basename $ks` console=tty0 console=ttyS0,115200 proxy=$http_proxy" \
     --disk $(pwd)/$output,size=6 \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list