search for: reg_import

Displaying 20 results from an estimated 21 matches for "reg_import".

2020 Jan 16
1
[PATCH 2/2] Win::Hivex::Regedit: Ignore comments
--- perl/lib/Win/Hivex/Regedit.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perl/lib/Win/Hivex/Regedit.pm b/perl/lib/Win/Hivex/Regedit.pm index 2b17036..f0dbb50 100644 --- a/perl/lib/Win/Hivex/Regedit.pm +++ b/perl/lib/Win/Hivex/Regedit.pm @@ -153,8 +153,8 @@ sub reg_import #print STDERR "reg_import: parsing <<<$_>>>\n"; if ($state eq "outer") { - # Ignore blank lines, headers. - next if /^\s*$/; + # Ignore blank lines, headers, comments. + next if /^\s*(;.*)?$/;...
2016 Apr 06
8
[PATCH 0/4] v2v: simplify Windows registry patching
The way we patch the Windows registry in order to allow it to boot off a virtio-blk drive was initially conceived by comparing the state with virtio-blk driver properly installed, to that without. However, we don't want to replicate the Windows PnP system; rather we need to apply just enough edits to make the system boot, and then let the Windows PnP manager figure out the rest. This series
2016 Apr 05
0
[PATCH 7/7] v2v: add support for SUSE VMDP drivers
...*) - let driver = "viostor.sys" in let driver_name = Filename.chop_extension driver in (* Windows 2k3 uses '&0&', windows 2k8 '&2&' *) let subkey = @@ -208,11 +222,10 @@ and add_viostor_to_critical_device_database g root current_cs major = reg_import g root regedits -and add_viostor_to_driver_database g root arch current_cs driverdir = +and add_viostor_to_driver_database g root arch current_cs driverdir driver = (* Windows >= 8 doesn't use the CriticalDeviceDatabase. Instead * one must add keys into the DriverDatabase. *) -...
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
2014 Dec 02
1
[PATCH NOT TO BE APPLIED] v2v: windows: Make registry changes to all ControlSets, not
[Partly using the mailing list as a backup again ...] This commit changes virt-v2v to make registry changes to all ControlSets, not just the CurrentControlSet. Not sure what difference if any this would make. Rich.
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
2010 Mar 29
4
[PATCH 0/3] Export and merge into Windows Registry
As described here previously: https://www.redhat.com/archives/libguestfs/2010-March/msg00129.html Here is the three part patch to reimplement virt-win-reg to support exporting and merging Windows Registry entries in the 'regedit' format. Tested by me on a local Windows VM. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top'
2016 Apr 05
0
[PATCH 3/7] customize: add support for pvvxsvc
...- [ current_cs; "services"; "firstboot"; "Parameters" ], - [ "CommandLine", - REG_SZ ("cmd /c \"" ^ firstboot_dir_win ^ "\\firstboot.bat\""); - "PWD", REG_SZ firstboot_dir_win ]; - ] in - reg_import g root_node regedits; - - g#hivex_commit None; - g#hivex_close (); - - firstboot_dir +%s -s firstboot uninstall +" firstboot_dir_win srvany in + + g#write (firstboot_dir // "firstboot.bat") (unix2dos firstboot_script); + + (* Open the SYSTEM hive. *) + let sys...
2010 May 06
1
[PATCH v2v] Pre-convert Windows guests.
...:GuestOS::Windows; + +our @ISA = ('Sys::VirtV2V::GuestOS'); + +use strict; +use warnings; + +use Carp qw(carp); +use File::Temp qw(tempdir); +use Data::Dumper; +use IO::String; + +use Sys::VirtV2V::UserMessage qw(user_message); +use Sys::Guestfs; +use Win::Hivex; +use Win::Hivex::Regedit qw(reg_import); + +use Locale::TextDomain 'virt-v2v'; + +=pod + +=head1 NAME + +Sys::VirtV2V::GuestOS::Windows - Manipulate and query a Windows guest + +=head1 SYNOPSIS + + use Sys::VirtV2V::GuestOS; + + $guestos = Sys::VirtV2V::GuestOS->instantiate($g, $desc); + +=head1 DESCRIPTION + +Sys::VirtV2V::G...
2016 Apr 05
0
[PATCH 6/7] v2v: quiet virtio net and balloon devices wizards
...", REG_DWORD 0x0_l; + "Service", REG_SZ driver_name ]; + [ current_cs; "Enum"; "PCI"; "VEN_1AF4&DEV_1002&SUBSYS_00051AF4&REV_00"; subkey ^ "&28" ], + [ "ConfigFlags", REG_DWORD 0x40_l ]; ] in reg_import g root regedits -- 2.6.2
2017 Dec 29
0
[PATCH 1/1] hivexregedit: add --max-depth option for exports
..."unsafe-printable-strings" => \$unsafe_printable_strings, "unsafe" => \$unsafe, + "max-depth=i" => \$max_depth, ) or pod2usage (2); pod2usage (1) if $help; @@ -332,7 +347,8 @@ if ($merge) { # --merge (reg_import) reg_export ($h, $key, \*STDOUT, prefix => $prefix, unsafe_printable_strings => $unsafe_printable_strings, - unsafe => $unsafe); + unsafe => $unsafe, + max_depth => $max_depth); } =head1 SEE ALSO...
2020 Jan 16
0
[PATCH 1/2] Win::Hivex::Regedit: Accept CRLF line endings
--- perl/lib/Win/Hivex/Regedit.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl/lib/Win/Hivex/Regedit.pm b/perl/lib/Win/Hivex/Regedit.pm index 34426f1..2b17036 100644 --- a/perl/lib/Win/Hivex/Regedit.pm +++ b/perl/lib/Win/Hivex/Regedit.pm @@ -144,6 +144,7 @@ sub reg_import # this is fairly common in pasted regedit files. $lineno++; chomp; + s/\r$//; if (s/\\\s*$//) { $_ .= <$fh>; redo unless eof ($fh); -- 2.25.0
2010 Apr 28
2
[PATCH hivex] regedit: Add implicit nul-termination when importing strings.
...;Foo"="Bar" using Windows regedit program, implicit nul-termination is added to the value (not the key), so what is stored in the value would be something like: hex(1):42,00,61,00,72,00,00,00 where two of the trailing zero bytes come from the implicit terminator. This corrects the reg_import function so it works the same way. --- perl/lib/Win/Hivex/Regedit.pm | 3 +++ perl/t/560-regedit-import.t | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/perl/lib/Win/Hivex/Regedit.pm b/perl/lib/Win/Hivex/Regedit.pm index 871e5ba..c69fda8 100644 --- a/perl/lib/Wi...
2017 Dec 29
2
[PATCH 0/1] hivexregedit: add --max-depth option for exports
This new option allows you to only export what you care about from a registry hive by specifying a max recursion depth. Michael Meyer (1): hivexregedit: add --max-depth option for exports perl/lib/Win/Hivex/Regedit.pm | 14 ++++++++++++-- regedit/hivexregedit | 18 +++++++++++++++++- 2 files changed, 29 insertions(+), 3 deletions(-) -- 2.14.3 (Apple Git-98)
2016 Apr 05
0
[PATCH 1/7] v2v: check next free oem%d.inf in /Windows/Inf
...root arch current_cs + add_viostor_to_driver_database g root arch current_cs driverdir else (* Windows <= 7 *) add_viostor_to_critical_device_database g root current_cs @@ -195,7 +195,7 @@ and add_viostor_to_critical_device_database g root current_cs = reg_import g root regedits -and add_viostor_to_driver_database g root arch current_cs = +and add_viostor_to_driver_database g root arch current_cs driverdir = (* Windows >= 8 doesn't use the CriticalDeviceDatabase. Instead * one must add keys into the DriverDatabase. *) @@ -213,27 +213,7...
2017 Feb 16
6
[PATCH v4 0/5] hivex: handle corrupted hives better.
The following patches address issues when dealing with hives that have corrupted data in them but are otherwise readable/writable. Those were found on some rather rare Windows installations that seem to work fine but current hivex fails to even open. Those patches change hivex to simply log and ignore such "corrupted" regions instead of aborting because the caller might be looking at
2011 Jun 28
13
[PATCH hivex 02/14] maint: remove unnecessary test-before-free
From: Jim Meyering <meyering at redhat.com> * lib/hivex.c (hivex_node_set_value): Remove unnecessary test-before-free. --- lib/hivex.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/hivex.c b/lib/hivex.c index d042f4f..a72fa77 100644 --- a/lib/hivex.c +++ b/lib/hivex.c @@ -2748,8 +2748,7 @@ hivex_node_set_value (hive_h *h, hive_node_h node, leave_partial:
2016 Apr 05
0
[PATCH 4/7] v2v: extract reusable parts of viostor regedits
..._SZ "%rhel%" ]; - - [ "DriverDatabase"; "DriverPackages"; viostor_inf; "Strings" ], - [ "rhel", REG_SZ "Red Hat, Inc."; - "rhelscsi.devicedesc", REG_SZ "Red Hat VirtIO SCSI controller" ]; ] in reg_import g root regedits; @@ -402,6 +300,149 @@ and get_controller_offset g root controller_path = in loop node 0 +and get_common_regedits g root current_cs adapter_guid driverdir driver driverdesc driver_version service_group inf_full device_id device_subkey device_alt device_addr provider =...
2010 Jul 28
3
Create new Sys::VirtV2V::Util
These 2 patches are mostly code motion. They were prompted by an apparent augeas error in BZ 613967 which didn't display useful error message. The error seems to happen in Converter::Linux. GuestOS::RedHat had a handy function which displayed verbose augeas error messages. This function moves into the new module where it can be used by both modules. The second patch is an consequential tidy
2015 May 15
5
[PATCH 0/4] Only tell people to use -v -x when reporting bugs if they're not using those flags.
.. and a lot of refactoring. https://bugzilla.redhat.com/show_bug.cgi?id=1167623 Rich.