Displaying 11 results from an estimated 11 matches for "firstboot_script".
2015 Feb 27
5
[PATCH 0/4] firstboot: assorted enhancements
This patchset attempts to address a number of shortcomings in the
firstboot infrastructure I came across while working with v2v conversion
of various Windows VMs.
Roman Kagan (4):
firstboot: consolidate line ending conversion
firstboot: enhance firstboot driver script for Windows
firstboot: make script naming descriptive
convert_windows: split firstboot into steps
2015 Feb 27
0
[PATCH 1/4] firstboot: consolidate line ending conversion
...egexp_string "\n") s)
+
(* For Linux guests. *)
module Linux = struct
let firstboot_dir = "/usr/lib/virt-sysprep"
@@ -207,22 +210,18 @@ module Windows = struct
* scripts in the directory. Note we need to use CRLF line endings
* in this script.
*)
- let firstboot_script = [
- "@echo off";
- "echo starting firstboot service >>log.txt";
- (* Notes:
- * - You have to use double %% inside the batch file, but NOT
- * when typing the same commands on the command line.
- * - You have to use 'call' in fron...
2015 Feb 27
0
[PATCH 2/4] firstboot: enhance firstboot driver script for Windows
...a/customize/firstboot.ml b/customize/firstboot.ml
index ffcee12..f529462 100644
--- a/customize/firstboot.ml
+++ b/customize/firstboot.ml
@@ -210,16 +210,39 @@ module Windows = struct
* scripts in the directory. Note we need to use CRLF line endings
* in this script.
*)
- let firstboot_script = "\
+ let firstboot_script = sprintf "\
@echo off
-echo starting firstboot service >>log.txt
+setlocal EnableDelayedExpansion
+set firstboot=%s
+set log=%%firstboot%%\\log.txt
-for /f %%f in ('dir /b scripts') do call \"scripts\\%%f\" >>log.txt
+set...
2016 Apr 05
0
[PATCH 3/7] customize: add support for pvvxsvc
...- (* Copy rhsrvany to the guest. *)
- g#upload rhsrvany_exe (firstboot_dir // "rhsrvany.exe");
-
- (* Write a firstboot.bat control script which just runs the other
- * scripts in the directory. Note we need to use CRLF line endings
- * in this script.
- *)
- let firstboot_script = sprintf "\
+ let services = ["rhsrvany.exe"; "pvvxsvc.exe"] in
+ let srvany = (
+ try
+ List.find (
+ fun service -> (
+ try
+ let chan = open_in (virt_tools_data_dir // service) in
+ close_in chan;
+...
2015 Feb 27
0
[PATCH 4/4] convert_windows: split firstboot into steps
...guest. *)
let rec configure_firstboot () =
- let fb = Buffer.create 1024 in
- bprintf fb "@echo off\n";
+ configure_rhev_apt ();
+ unconfigure_xenpv ()
- configure_rhev_apt fb;
- unconfigure_xenpv fb;
-
- (* Write the completed script to the guest. *)
- let firstboot_script = Buffer.contents fb in
- Firstboot.add_firstboot_script g inspect.i_root "firstboot" firstboot_script
-
- and configure_rhev_apt fb =
+ and configure_rhev_apt () =
(* Configure RHEV-APT (the RHEV guest agent). However if it doesn't
* exist just warn about it and cont...
2016 May 12
0
[PATCH 05/11] customize: add support for pvvxsvc
...uot;\\*.bat) do (
echo uninstalling firstboot service
rmdir /S /Q \"%%scripts_done%%\"
-rhsrvany.exe -s firstboot uninstall
-" firstboot_dir_win in
+%s -s firstboot uninstall
+" firstboot_dir_win srvany in
g#write (firstboot_dir // "firstboot.bat") (unix2dos firstboot_script);
@@ -282,7 +290,7 @@ rhsrvany.exe -s firstboot uninstall
"Start", REG_DWORD 0x2_l;
"ErrorControl", REG_DWORD 0x1_l;
"ImagePath",
- REG_SZ (firstboot_dir_win ^ "\\rhsrvany.exe -s firstboot");
+ REG_SZ (sprintf &q...
2016 May 18
0
[PATCH v2 05/11] customize: add support for pvvxsvc
...uot;\\*.bat) do (
echo uninstalling firstboot service
rmdir /S /Q \"%%scripts_done%%\"
-rhsrvany.exe -s firstboot uninstall
-" firstboot_dir_win in
+%s -s firstboot uninstall
+" firstboot_dir_win srvany in
g#write (firstboot_dir // "firstboot.bat") (unix2dos firstboot_script);
@@ -282,7 +288,7 @@ rhsrvany.exe -s firstboot uninstall
"Start", REG_DWORD 0x2_l;
"ErrorControl", REG_DWORD 0x1_l;
"ImagePath",
- REG_SZ (firstboot_dir_win ^ "\\rhsrvany.exe -s firstboot");
+ REG_SZ (sprintf &q...
2016 Apr 05
22
[PATCH 0/7] Add support for SUSE virtio windows drivers
Hi there,
SUSE ships Virtual Machine Driver Pack for the virtio windows drivers. Get v2v
and customize to discover them and use them if available.
Cédric Bosdonnat (7):
v2v: check next free oem%d.inf in /Windows/Inf
v2v: extract controller offset discovery as a function
customize: add support for pvvxsvc
v2v: extract reusable parts of viostor regedits
v2v: adapt the subkey in Enum
2016 May 18
21
[PATCH v2 00/11] Getting it work with SLES / openSUSE
Hi all,
v2 includes all comments from Pino and Richard. I also removed the
mkdir /run/lvm in the init since it only failed in one case and couldn't
reproduce it anymore.
Cédric Bosdonnat (11):
v2v: also search for windows virtio drivers in symlinks
Update packagelist for SLES and openSUSE
customize: fix windows firstboot script
customize: change windows firstboot path
customize:
2016 May 12
24
[PATCH 00/11] Getting it work with SLES / openSUSE
Hi there!
I know it's been a while since I posted my first version of some patches.
But here I have rebased them on top of Roman's work and added a few other ones.
Cédric Bosdonnat (11):
v2v: also search for windows virtio drivers in symlinks
Update packagelist for SLES
customize: fix windows firstboot script
customize: change windows firstboot path
customize: add support for
2017 Feb 18
11
[PATCH 0/8] Miscellaneous cleanups to Windows registry code.
A very miscellaneous set of cleanups to how we handle the Windows
registry in virt-v2v, firstboot, and inspection code. This should all
be straightforward non-controversial refactoring. Some highlights:
- Add a new mllib Registry module containing various utility
functions that are currently scattered all around.
- Only compute the software/system hive paths once during inspection,
and