FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 04-25-2012, 10:42 PM
"Brian C. Lane"
 
Default Check /run/initramfs/live/ for packages (#806166)

From: "Brian C. Lane" <bcl@redhat.com>

An iso that had been dd'd to a USB stick needs to find the
packages so look at the root of the media (which dracut mounts
on /run/initramfs/live/) and bind mount that to /mnt/install/source
---
pyanaconda/yuminstall.py | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 109daec..ce7fe67 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -474,11 +474,17 @@ class AnacondaYum(yum.YumBase):
self._mountInstallCD()
self.mediagrabber = self.mediaHandler
self._baseRepoURL = "file://%s" % self.tree
+ elif os.path.isdir("/run/initramfs/live/repodata"):
+ # No methodstr was given. In order to find an installation source
+ # we first check to see if dracut has already mounted the source
+ # on /run/initramfs/live/ and if not we check to see if there's a
+ # CD/DVD with packages on it. If both those fail we default to the
+ # mirrorlist URL. The user can always change the repo with the
+ # repo editor later.
+ isys.mount("/run/initramfs/live/", self.tree, bindMount=True)
+ self.mediagrabber = self.mediaHandler
+ self._baseRepoURL = "file://%s" % self.tree
else:
- # No methodstr was given. In order to find an installation source,
- # we should first check to see if there's a CD/DVD with packages
- # on it, and then default to the mirrorlist URL. The user can
- # always change the repo with the repo editor later.
cdr = scanForMedia(self.tree, self.anaconda.storage)
if cdr:
self.mediagrabber = self.mediaHandler
--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-25-2012, 10:58 PM
Jesse Keating
 
Default Check /run/initramfs/live/ for packages (#806166)

On 04/25/2012 03:42 PM, Brian C. Lane wrote:

From: "Brian C. Lane"<bcl@redhat.com>

An iso that had been dd'd to a USB stick needs to find the
packages so look at the root of the media (which dracut mounts
on /run/initramfs/live/) and bind mount that to /mnt/install/source
---
pyanaconda/yuminstall.py | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 109daec..ce7fe67 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -474,11 +474,17 @@ class AnacondaYum(yum.YumBase):
self._mountInstallCD()
self.mediagrabber = self.mediaHandler
self._baseRepoURL = "file://%s" % self.tree
+ elif os.path.isdir("/run/initramfs/live/repodata"):
+ # No methodstr was given. In order to find an installation source
+ # we first check to see if dracut has already mounted the source
+ # on /run/initramfs/live/ and if not we check to see if there's a
+ # CD/DVD with packages on it. If both those fail we default to the
+ # mirrorlist URL. The user can always change the repo with the
+ # repo editor later.
+ isys.mount("/run/initramfs/live/", self.tree, bindMount=True)
+ self.mediagrabber = self.mediaHandler
+ self._baseRepoURL = "file://%s" % self.tree
else:
- # No methodstr was given. In order to find an installation source,
- # we should first check to see if there's a CD/DVD with packages
- # on it, and then default to the mirrorlist URL. The user can
- # always change the repo with the repo editor later.
cdr = scanForMedia(self.tree, self.anaconda.storage)
if cdr:
self.mediagrabber = self.mediaHandler


Looks clean, ACK

--
Jesse Keating
Fedora -- Freedom˛ is a feature!

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

Thread Tools




All times are GMT. The time now is 11:14 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org