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

Commit 071e92f

Browse files
committed
OSDistro: Properly detect RHEL3 distro
1 parent 2f6dc7c commit 071e92f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

virtinst/OSDistro.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,12 @@ def isValidStore(self, fetcher, progresscb):
535535
self.os_variant = "rhel5"
536536
return True
537537
if fetcher.hasFile("RedHat"):
538-
logging.debug("Detected a RHEL 4 distro")
539-
self.os_variant = "rhel4"
538+
if fetcher.hasFile("dosutils"):
539+
self.os_variant = "rhel3"
540+
else:
541+
self.os_variant = "rhel4"
542+
543+
logging.debug("Detected a %s distro" % self.os_variant)
540544
return True
541545
return False
542546

0 commit comments

Comments
 (0)