summaryrefslogtreecommitdiffstats
path: root/pyanaconda/packaging/yumpayload.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyanaconda/packaging/yumpayload.py')
-rw-r--r--pyanaconda/packaging/yumpayload.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 28f728da4..c62e92651 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -553,10 +553,11 @@ reposdir=%s
# Did dracut leave the DVD mounted for us?
device = get_mount_device("/run/install/repo")
if device:
- self.install_device = storage.devicetree.getDeviceByPath(device)
- url = "file:///run/install/repo"
- if not method.method:
- method.method = "cdrom"
+ if os.path.isdir("/run/install/repo/os/repodata"):
+ self.install_device = storage.devicetree.getDeviceByPath(device)
+ url = "file:///run/install/repo"
+ if not method.method:
+ method.method = "cdrom"
else:
# cdrom or no method specified -- check for media
device = opticalInstallMedia(storage.devicetree)