Displaying 3 results from an estimated 3 matches for "copy_preseed_to_temporary".
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
2016 Nov 30
0
Re: [PATCH] builder: Rearrange how template-building scripts work.
...; +";
> +
> + (match os with
> + | RHEL ((3|4|5), _) -> ()
> + | _ ->
> + bpf "%%end\n"
> + );
rhel.sh has:
if [ $major -ge 6 ]; then
so I think the check should rather be:
| RHEL (ver, _) when ver >= 6 ->
(Same note above.)
> +and copy_preseed_to_temporary source =
> + (* d-i only works if the file is literally called "/preseed.cfg" *)
> + let d = "/tmp" // random8 () ^ ".tmp" in
Filename.temp_dir_name instead of /tmp here.
> +and make_location os arch =
> + match os, arch with
> + | CentOS (major, _...
2016 Nov 28
2
[PATCH] builder: Rearrange how template-building scripts work.
..._ | Ubuntu _ -> false
+
+and make_kickstart_or_preseed os arch =
+ match os with
+ (* Kickstart. *)
+ | Fedora _ | CentOS _ | RHEL _ ->
+ let ks_filename = filename_of_os os arch ".ks" in
+ make_kickstart_common ks_filename os arch
+
+ (* Preseed. *)
+ | Debian _ -> copy_preseed_to_temporary "debian.preseed"
+ | Ubuntu _ -> copy_preseed_to_temporary "ubuntu.preseed"
+
+and make_kickstart_common ks_filename os arch =
+ let buf = Buffer.create 4096 in
+ let bpf fs = bprintf buf fs in
+
+ bpf "\
+# Kickstart file for %s
+# Generated by libguestfs.git/builde...