Displaying 2 results from an estimated 2 matches for "make_rhel_yum_conf".
2020 Mar 11
1
[PATCH] builder: templates: add the AppStream repo
...++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/builder/templates/make-template.ml b/builder/templates/make-template.ml
index 8d26177bf..a4e2f37fb 100755
--- a/builder/templates/make-template.ml
+++ b/builder/templates/make-template.ml
@@ -1238,7 +1238,8 @@ and make_rhel_yum_conf major minor arch =
major major minor in
sprintf "%s/Server/%s/os" topurl arch,
sprintf "%s/source/SRPMS" topurl,
- Some (sprintf "%s/Server/optional/%s/os" arch topurl,
+ Some ("Optional",
+...
2016 Nov 28
2
[PATCH] builder: Rearrange how template-building scripts work.
...virt-install --location for this OS. *)
+ let location = make_location os arch in
+
+ (* RHEL guests require alternate yum configuration pointing to
+ * Red Hat's internal servers.
+ *)
+ let yum_conf =
+ match os with
+ | RHEL (major, minor) when major >= 5 ->
+ Some (make_rhel_yum_conf major minor arch)
+ | _ -> None in
+
+ (* Choose a random temporary name for the libvirt domain. We will
+ * also have to clean this up after running virt-install.
+ *)
+ let tmpname = sprintf "tmp-%s" (random8 ()) in
+
+ (* Choose a random temporary disk name. *)
+ let tmp...