Displaying 5 results from an estimated 5 matches for "os_of_string".
2016 Dec 02
1
[PATCH NOT TO BE APPLIED] builder: make-template: Add --encrypted
I was attempting one way to solve:
https://bugzilla.redhat.com/show_bug.cgi?id=1400332
"RFE: virt-builder should support templates with encrypted filesystems"
However this approach doesn't really work because templates containing
encrypted partitions cannot be compressed, and therefore the guest
template would be a multi-gigabyte download.
I better approach will likely be to use
2017 Aug 26
0
[PATCH 2/2] builder/templates: remove Debian 6 (Squeeze)
...se:
-
- --firstboot-command "dpkg-reconfigure openssh-server"
-
diff --git a/builder/templates/make-template.ml b/builder/templates/make-template.ml
index 42ff48eb9..24c6d5582 100755
--- a/builder/templates/make-template.ml
+++ b/builder/templates/make-template.ml
@@ -328,7 +328,6 @@ and os_of_string os ver =
match os, ver with
| "centos", ver -> let maj, min = parse_major_minor ver in CentOS (maj, min)
| "rhel", ver -> let maj, min = parse_major_minor ver in RHEL (maj, min)
- | "debian", "6" -> Debian (6, "squeeze")
| &quo...
2017 Aug 26
5
[PATCH 1/2] builder/templates/debian.preseed: enable serial console
Also unify .index-fragment files
---
builder/templates/debian-7.index-fragment | 7 -------
builder/templates/debian-8.index-fragment | 7 -------
builder/templates/debian-9.index-fragment | 18 ++++++------------
builder/templates/debian.preseed | 1 +
builder/templates/make-template.ml | 6 ------
5 files changed, 7 insertions(+), 32 deletions(-)
diff --git
2016 Nov 30
0
Re: [PATCH] builder: Rearrange how template-building scripts work.
...ize = 64);
> + Random.self_init ();
> +
> + (* Get the os, version, arch from the command line. *)
> + if Array.length Sys.argv < 3 || Array.length Sys.argv > 4 then (
> + eprintf "%s os version [arch]\n" prog;
> + exit 1
> + );
> +
> + let os = os_of_string Sys.argv.(1) Sys.argv.(2)
> + and arch =
> + if Array.length Sys.argv <= 3 then X86_64
> + else arch_of_string Sys.argv.(3) in
> +
> + (* Set the path to use locally built copies of the virt-* tools. *)
> + let () =
> + let orig_path = Unix.getenv "PATH"...
2016 Nov 28
2
[PATCH] builder: Rearrange how template-building scripts work.
...6
+
+let rec main () =
+ assert (Sys.word_size = 64);
+ Random.self_init ();
+
+ (* Get the os, version, arch from the command line. *)
+ if Array.length Sys.argv < 3 || Array.length Sys.argv > 4 then (
+ eprintf "%s os version [arch]\n" prog;
+ exit 1
+ );
+
+ let os = os_of_string Sys.argv.(1) Sys.argv.(2)
+ and arch =
+ if Array.length Sys.argv <= 3 then X86_64
+ else arch_of_string Sys.argv.(3) in
+
+ (* Set the path to use locally built copies of the virt-* tools. *)
+ let () =
+ let orig_path = Unix.getenv "PATH" in
+ let paths = ["builde...