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

Commit eb6d70c

Browse files
committed
Don't override os_type from install media if it was manually set by the user.
1 parent 56471b5 commit eb6d70c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

virtinst/DistroInstaller.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ def _prepare_kernel_and_initrd(self, guest, distro, meter):
180180
self.location, meter, guest.arch, scratchdir=self.scratchdir,
181181
type=self.os_type, distro=distro)
182182

183-
guest.os_type = os_type
183+
# Only set OS type if the user didn't explictly pass one
184+
if guest.os_type == None and os_type:
185+
guest.os_type = os_type
186+
184187
self.install["kernel"] = kernelfn
185188
self.install["initrd"] = initrdfn
186189
self.install["extraargs"] = args

0 commit comments

Comments
 (0)