diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-04-05 14:03:08 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-04-05 20:01:57 +0100 |
commit | 13d8963d8c0203e1f72c519e5acf79ebf7cccb4c (patch) | |
tree | 0699b86ada86e692a24294e7ca719d18c702e13e /images | |
parent | 9e7c6a548353bde925c16434711bcc6208038d83 (diff) | |
download | libguestfs-13d8963d8c0203e1f72c519e5acf79ebf7cccb4c.tar.gz libguestfs-13d8963d8c0203e1f72c519e5acf79ebf7cccb4c.tar.xz libguestfs-13d8963d8c0203e1f72c519e5acf79ebf7cccb4c.zip |
New API: inspect-get-drive-mappings
This returns the drive mappings from the Windows Registry.
virt-inspector displays the drive mappings, giving output
similar to this:
<drive_mappings>
<drive_mapping name="C">/dev/sda2</drive_mapping>
<drive_mapping name="E">/dev/sdb1</drive_mapping>
</drive_mappings>
Diffstat (limited to 'images')
-rwxr-xr-x | images/guest-aux/make-windows-img.sh | 3 | ||||
-rwxr-xr-x | images/guest-aux/windows-system | bin | 12288 -> 12288 bytes | |||
-rw-r--r-- | images/guest-aux/windows-system.reg | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/images/guest-aux/make-windows-img.sh b/images/guest-aux/make-windows-img.sh index 15cb7c53..f659f4b4 100755 --- a/images/guest-aux/make-windows-img.sh +++ b/images/guest-aux/make-windows-img.sh @@ -45,6 +45,9 @@ part-init /dev/sda mbr part-add /dev/sda p 64 524287 part-add /dev/sda p 524288 -64 +# Disk ID. +pwrite-device /dev/sda "1234" 0x01b8 + # Phony boot loader filesystem. mkfs ntfs /dev/sda1 diff --git a/images/guest-aux/windows-system b/images/guest-aux/windows-system Binary files differindex 7d935b02..3a232142 100755 --- a/images/guest-aux/windows-system +++ b/images/guest-aux/windows-system diff --git a/images/guest-aux/windows-system.reg b/images/guest-aux/windows-system.reg index 6cb5d324..5478d2de 100644 --- a/images/guest-aux/windows-system.reg +++ b/images/guest-aux/windows-system.reg @@ -4,6 +4,9 @@ "Failed"=dword:00000000 "LastKnownGood"=dword:00000002 +[HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices] +"\\DosDevices\\C:"=hex(3):31,32,33,34,00,00,00,10,00,00,00,00 + [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001] [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services] |