Winvos.BootstrapBootstrap to create the imager.
val builtin_script_src :
bootstrap_arch:B0_std.Os.Arch.t ->
imager_arch:B0_std.Os.Arch.t ->
string optionbuiltin_bootstrap_script_src ~bootstrap_arch ~imager_arch is the .cmd bootstrap script source for running on bootstrap_arch that generates the imager image of architecture imager_arch
val get_script_src :
data_dir:B0_std.Fpath.t ->
bootstrap_arch:B0_std.Os.Arch.t ->
imager_arch:B0_std.Os.Arch.t ->
B0_std.Fpath.t option ->
(string, string) Stdlib.resultget_script_src is like builtin_script_src on None otherwise looks up and reads the given file (possibly resolved in the data_dir)
val make_image :
script_src:string ->
bootstrap_winvos_iso:B0_std.Fpath.t ->
bootstrap_winvos_mount:B0_std.Fpath.t ->
imager_winvos_iso:B0_std.Fpath.t ->
force:bool ->
B0_std.Fpath.t ->
(unit, string) Stdlib.resultmake_image ~script_src ~bootstrap_winvos_mount ~imager_winvos_iso dst makes the image sed for boostrapping. This makes an Extfat image at dst u and copies bcdboot.exe from the bootstrap_winvos_mount packages copies all the files from imager_winvos_iso and writes the bootstrap script script_src at the root of the image
val run :
script_src:string ->
bootstrap_arch:B0_std.Os.Arch.t ->
bootstrap_winvos_iso:B0_std.Fpath.t ->
imager_winvos_iso:B0_std.Fpath.t ->
virtio_win_iso:B0_std.Fpath.t ->
dst:B0_std.Fpath.t ->
(unit, string) Stdlib.resultrun performs the bootstrap process on image dst which is assumed to have been obtained via Imager.make_blank_image.