Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit fd76d7d

Browse files
committed
Don't fail post_install_check if on remote connection.
1 parent dbc5821 commit fd76d7d

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

virtinst/DistroManager.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,14 @@ def _get_osblob(self, install, hvm, arch = None, loader = None, conn = None):
303303
return osblob
304304

305305
def post_install_check(self, guest):
306+
if util.is_uri_remote(guest.conn.getURI()):
307+
# Use block peek for this?
308+
return True
309+
310+
if len(guest._install_disks) == 0 \
311+
or guest._install_disks[0].device != VirtualDisk.DEVICE_DISK:
312+
return True
313+
306314
# Check for the 0xaa55 signature at the end of the MBR
307315
try:
308316
fd = os.open(guest._install_disks[0].path, os.O_RDONLY)
@@ -357,6 +365,14 @@ def _get_osblob(self, install, hvm, arch = None, loader = None, conn = None):
357365
return osblob
358366

359367
def post_install_check(self, guest):
368+
if util.is_uri_remote(guest.conn.getURI()):
369+
# Use block peek for this?
370+
return True
371+
372+
if len(guest._install_disks) == 0 \
373+
or guest._install_disks[0].device != VirtualDisk.DEVICE_DISK:
374+
return True
375+
360376
# Check for the 0xaa55 signature at the end of the MBR
361377
try:
362378
fd = os.open(guest._install_disks[0].path, os.O_RDONLY)

0 commit comments

Comments
 (0)