Revision aca3e650
b/image_creator/os_type/windows.py | ||
---|---|---|
116 | 116 |
def __init__(self, image, **kargs): |
117 | 117 |
super(Windows, self).__init__(image, **kargs) |
118 | 118 |
|
119 |
# This commit was added in libguestfs 1.17.18 and is critical because |
|
120 |
# Microsoft Sysprep removes this key: |
|
121 |
# |
|
122 |
# When a Windows guest doesn't have a HKLM\SYSTEM\MountedDevices node, |
|
123 |
# inspection fails. However inspection should not completely fail just |
|
124 |
# because we cannot get the drive letter mapping from a guest. |
|
125 |
if check_guestfs_version(self.image.g, 1, 17, 18) < 0: |
|
126 |
raise FatalError( |
|
127 |
'For windows support libguestfs 1.17.17 or above is needed') |
|
128 |
|
|
119 | 129 |
device = self.image.g.part_to_dev(self.root) |
120 | 130 |
|
121 | 131 |
self.last_part_num = self.image.g.part_list(device)[-1]['part_num'] |
Also available in: Unified diff