summaryrefslogtreecommitdiffstats
path: root/pyanaconda/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'pyanaconda/packaging')
-rw-r--r--pyanaconda/packaging/yumpayload.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index c62e92651..28f728da4 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -553,11 +553,10 @@ reposdir=%s
# Did dracut leave the DVD mounted for us?
device = get_mount_device("/run/install/repo")
if device:
- 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"
+ 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)