Displaying 20 results from an estimated 24 matches for "use_base".
2015 Nov 11
2
[PATCH 1/2] dib: Make the interface between cmdline.ml and dib.ml explicit.
...--- a/dib/cmdline.ml
+++ b/dib/cmdline.ml
@@ -25,7 +25,37 @@ open Utils
open Printf
-let parse_args () =
+type cmdline = {
+ debug : int;
+ basepath : string;
+ elements : string list;
+ excluded_elements : string list;
+ element_paths : string list;
+ excluded_scripts : string list;
+ use_base : bool;
+ drive : string option;
+ image_name : string;
+ fs_type : string;
+ size : int64;
+ root_label : string option;
+ install_type : string;
+ image_cache : string option;
+ compressed : bool;
+ qemu_img_options : string option;
+ mkfs_options : string option;
+ is_ramdisk : bool;...
2017 Mar 22
0
[PATCH 4/5] dib: require a Python interpreter
...else (
+ Unix.access exe [Unix.X_OK];
+ exe
+ ) in
+ Some p
+ | None -> None in
+
{ debug = debug; basepath = basepath; elements = elements;
excluded_elements = excluded_elements; element_paths = element_paths;
excluded_scripts = excluded_scripts; use_base = use_base; drive = drive;
@@ -256,5 +275,5 @@ read the man page virt-dib(1).
extra_packages = extra_packages; memsize = memsize; network = network;
smp = smp; delete_on_failure = delete_on_failure;
formats = formats; arch = arch; envvars = envvars;
- checksum = checksum;
+ che...
2017 Mar 22
7
[PATCH 0/5] dib: initial work to support d-i-b 2.0
Hi,
this series start to implement some of the changes needed to support
d-i-b 2.0; normal VM distro builds seem to work correctly, ramdisk
builds are still broken and require more efforts.
Thanks,
Pino Toscano (5):
dib: implement get_image_element_array stuff
dib: export IMAGE_BLOCK_DEVICE_WITHOUT_PART
dib: extract get_required_tool out of require_tool
dib: require a Python interpreter
2015 May 29
0
[PATCH v3] RFC: New virt-dib tool
...uot; | "tar" | "raw" | "vhd" -> ()
+ | fmt ->
+ error (f_"invalid format '%s' in --formats") fmt
+ ) fmts;
+ formats := fmts in
+
+ let envvars = ref [] in
+ let append_envvar arg =
+ envvars := arg :: !envvars in
+
+ let use_base = ref true in
+
+ let arch = ref "" in
+
+ let drive = ref None in
+ let set_drive arg = drive := Some arg in
+
+ let root_label = ref None in
+ let set_root_label arg = root_label := Some arg in
+
+ let install_type = ref "source" in
+
+ let image_cache = ref None in
+...
2015 Jul 03
1
[PATCH v5] New tool: virt-dib
...uot; | "tar" | "raw" | "vhd" -> ()
+ | fmt ->
+ error (f_"invalid format '%s' in --formats") fmt
+ ) fmts;
+ formats := fmts in
+
+ let envvars = ref [] in
+ let append_envvar arg =
+ envvars := arg :: !envvars in
+
+ let use_base = ref true in
+
+ let arch = ref "" in
+
+ let drive = ref None in
+ let set_drive arg = drive := Some arg in
+
+ let root_label = ref None in
+ let set_root_label arg = root_label := Some arg in
+
+ let install_type = ref "source" in
+
+ let image_cache = ref None in
+...
2015 Mar 31
0
[PATCH] WIP: New virt-dib tool
...| "qcow2" | "tar" | "raw" -> ()
+ | fmt ->
+ error (f_"invalid format '%s' in --formats") fmt
+ ) fmts;
+ formats := fmts in
+
+ let envvars = ref [] in
+ let append_envvar arg =
+ envvars := arg :: !envvars in
+
+ let use_base = ref true in
+
+ let arch = ref "" in
+
+ let drive = ref None in
+ let set_drive arg = drive := Some arg in
+
+ let root_label = ref None in
+ let set_root_label arg = root_label := Some arg in
+
+ let install_type = ref "source" in
+
+ let image_cache = ref None in
+...
2015 Jun 16
2
[PATCH v4] RFC: New tool: virt-dib
...uot; | "tar" | "raw" | "vhd" -> ()
+ | fmt ->
+ error (f_"invalid format '%s' in --formats") fmt
+ ) fmts;
+ formats := fmts in
+
+ let envvars = ref [] in
+ let append_envvar arg =
+ envvars := arg :: !envvars in
+
+ let use_base = ref true in
+
+ let arch = ref "" in
+
+ let drive = ref None in
+ let set_drive arg = drive := Some arg in
+
+ let root_label = ref None in
+ let set_root_label arg = root_label := Some arg in
+
+ let install_type = ref "source" in
+
+ let image_cache = ref None in
+...
2016 Aug 03
0
[PATCH] dib: rework run of extra-data.d hooks (RHBZ#1362354)
...// "hooks" in
do_mkdir (hookstmpdir // "environment.d"); (* Just like d-i-b does. *)
- let extradatatmpdir = tmpdir // "extra-data" in
- do_mkdir extradatatmpdir;
do_mkdir (auxtmpdir // "out" // image_basename_d);
let elements =
if cmdline.use_base then ["base"] @ cmdline.elements
@@ -575,20 +606,11 @@ let main () =
prepare_external ~envvars ~dib_args ~dib_vars ~out_name:image_basename
~root_label ~rootfs_uuid ~image_cache ~arch
~network:cmdline.network ~debug
- tmpdir cmd...
2016 Aug 03
3
[PATCH] mllib: move _exit from v2v as Exit module
Move the OCaml binding to C _exit to an own module.
Just code motion, adapting v2v in the process.
---
docs/C_SOURCE_FILES | 2 +-
mllib/Makefile.am | 5 ++++-
mllib/exit-c.c | 33 +++++++++++++++++++++++++++++++++
mllib/exit.ml | 19 +++++++++++++++++++
mllib/exit.mli | 20 ++++++++++++++++++++
v2v/Makefile.am | 1 -
v2v/changeuid-c.c | 33
2017 Feb 02
7
[PATCH 0/6] dib: various improvements
Hi,
this series improves virt-dib, adding some upstream changes, and
refactoring the handling of output formats.
Thanks,
Pino Toscano (6):
dib: clear up "already provided" message
dib: add --checksum
dib: pass custom mkfs options after the filesystem type
dib: refactor output formats handling
dib: clarify "output:" lines in --machine-readable documentation
dib:
2016 Jul 18
0
[PATCH v2 2/3] mllib: Use L"..." and S '...' for long and short options.
....String ("script", append_excluded_script),
s_"Exclude the specified script";
- [ "--envvar" ], Getopt.String ("envvar[=value]", append_envvar), s_"Carry/set this environment variable";
- [ "--skip-base" ], Getopt.Clear use_base, s_"Skip the inclusion of the 'base' element";
- [ "--root-label" ], Getopt.String ("label", set_root_label), s_"Label for the root fs";
- [ "--install-type" ], Getopt.Set_string ("type", install_type), s_"Instal...
2016 Jul 18
4
[PATCH v2 0/3] mllib: Various fixes and changes to Getopt module.
v1 -> v2:
- Further fixes to Getopt int parsing.
- Completed the L/S changes.
- Fixed the test suite so it passes now. Also we don't need the
special-case tests for 64 bit arch.
Rich.
2016 Jul 18
3
[PATCH v4 0/2] mllib: Various fixes and changes to Getopt module.
v3 -> v4:
- Pushed the first patch upstream since it was ACKed.
- Prevent use of M except for the special virt-v2v options.
- Sort the options after added --help etc.
- Make corresponding fixes to the tests.
Rich.
2016 Jul 18
4
[PATCH v3 0/3] mllib: Various fixes and changes to Getopt module.
v2 -> v3:
- Add M variant and test it.
Rich.
2016 Jun 27
0
Re: [PATCH] RFC: OCaml tools: add and use a Getopt module
...,
> - "script" ^ " " ^ s_"Exclude the specified script";
> - "--envvar", Arg.String append_envvar, "envvar[=value]" ^ " " ^ s_"Carry/set this environment variable";
> - "--skip-base", Arg.Clear use_base, " " ^ s_"Skip the inclusion of the 'base' element";
> - "--root-label", Arg.String set_root_label, "label" ^ " " ^ s_"Label for the root fs";
> - "--install-type", Arg.Set_string install_type, "ty...
2016 Jun 24
2
[PATCH] RFC: OCaml tools: add and use a Getopt module
...excluded_script,
- "script" ^ " " ^ s_"Exclude the specified script";
- "--envvar", Arg.String append_envvar, "envvar[=value]" ^ " " ^ s_"Carry/set this environment variable";
- "--skip-base", Arg.Clear use_base, " " ^ s_"Skip the inclusion of the 'base' element";
- "--root-label", Arg.String set_root_label, "label" ^ " " ^ s_"Label for the root fs";
- "--install-type", Arg.Set_string install_type, "type" ^...
2016 Jul 11
2
[PATCH v2] OCaml tools: add and use a Getopt module
...excluded_script,
- "script" ^ " " ^ s_"Exclude the specified script";
- "--envvar", Arg.String append_envvar, "envvar[=value]" ^ " " ^ s_"Carry/set this environment variable";
- "--skip-base", Arg.Clear use_base, " " ^ s_"Skip the inclusion of the 'base' element";
- "--root-label", Arg.String set_root_label, "label" ^ " " ^ s_"Label for the root fs";
- "--install-type", Arg.Set_string install_type, "type" ^...
2016 Jul 13
3
[PATCH v3 1/2] OCaml tools: add and use a Getopt module
...excluded_script,
- "script" ^ " " ^ s_"Exclude the specified script";
- "--envvar", Arg.String append_envvar, "envvar[=value]" ^ " " ^ s_"Carry/set this environment variable";
- "--skip-base", Arg.Clear use_base, " " ^ s_"Skip the inclusion of the 'base' element";
- "--root-label", Arg.String set_root_label, "label" ^ " " ^ s_"Label for the root fs";
- "--install-type", Arg.Set_string install_type, "type" ^...
2016 Jul 07
12
[PATCH v3 0/8] v2v: Move Curl wrapper to mllib and more.
v2 -> v3:
- Changes to the Curl API suggested by Pino.
2016 Jul 07
9
[PATCH v2 0/8] v2v: Move Curl wrapper to mllib and use it for virt-builder (and more).
v1 -> v2:
- Fixed the bug with precedence of if / @.
- Add some imperative list operators inspired by Perl, and use those
for constructing the Curl arguments, and more.
Rich.