]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
make-centos-flight: If branch name end with digit, add centos_release runvar
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 9 Jan 2018 14:38:36 +0000 (14:38 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Tue, 9 Jan 2018 14:38:36 +0000 (14:38 +0000)
make-centos-flight

index 968f08b153c189568d817795862f8d5a9f213659..2ef55689ba65f0b7a087d0f0e29f05c276bd1c0c 100755 (executable)
@@ -486,6 +486,10 @@ pairtoolstack="xl libvirt"
 hostos_runvars="
   all_host_os=centos        \
   "
+centos_release=${branch#centos}
+if [[ $centos_release ]]; then
+    hostos_runvars+=" centos_release=$centos_release"
+fi
 
 eval "
     arch_runvars=\"\$ARCH_RUNVARS_$dom0arch\"