Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian GCC (http://www.linux-archive.org/debian-gcc/)
-   -   Fix anaconda not finding CD when booting without root=live: (http://www.linux-archive.org/debian-gcc/663201-fix-anaconda-not-finding-cd-when-booting-without-root-live-cd.html)

Will Woods 05-04-2012 07:50 PM

Fix anaconda not finding CD when booting without root=live:
 
Basically the same deal as commit 45363385 - look at /run/install/repo
(where the CD will be mounted) when looking for media.

Obviously, scanForMedia should handle already-mounted media instead, but
that's something for F18.
---
pyanaconda/yuminstall.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index ce7fe67..7688ccc 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -484,6 +484,11 @@ class AnacondaYum(yum.YumBase):
isys.mount("/run/initramfs/live/", self.tree, bindMount=True)
self.mediagrabber = self.mediaHandler
self._baseRepoURL = "file://%s" % self.tree
+ elif os.path.isdir("/run/install/repo/repodata"):
+ # Same hack as above. FIXME: make scanForMedia do this, dammit
+ isys.mount("/run/install/repo", self.tree, bindMount=True)
+ self.mediagrabber = self.mediaHandler
+ self._baseRepoURL = "file://%s" % self.tree
else:
cdr = scanForMedia(self.tree, self.anaconda.storage)
if cdr:
--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 08:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.