[PATCH] Only use mounted media that has repodata
Jesse Keating
jkeating at redhat.com
Fri Aug 24 00:55:34 UTC 2012
This recovers some logic from yuminstall.py, only use /run/install/repo
if there is metadata there.
This is related to bug 851274 , but only fixes part of it. It gets
booting from boot.iso working again, but leaves booting from DVD broken.
---
pyanaconda/packaging/yumpayload.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 28f728d..c62e926 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)
--
1.7.11.2
More information about the anaconda-patches
mailing list