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

Commit f2b6efd

Browse files
committed
DistroInstaller: rerunning install should refetch URL
1 parent 71aaf5a commit f2b6efd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

virtinst/DistroInstaller.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,14 @@ def scratchdir_required(self):
284284

285285
return bool(is_url or mount_dvd)
286286

287+
def cleanup(self):
288+
Installer.Installer.cleanup(self)
289+
290+
if self.scratchdir_required():
291+
# Reruns of the install process should refetch kernel
292+
self._install_bootconfig.kernel = None
293+
self._install_bootconfig.initrd = None
294+
287295
def prepare(self, guest, meter):
288296
self.cleanup()
289297

0 commit comments

Comments
 (0)