Enable auto-detection of optical install media if no method/repo given.
Also, fix a stupid typo in forming the file:// URL that would prevent any
repos of a type other than http or ftp from working.
---
pyanaconda/packaging/yumpayload.py | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
@@ -281,10 +283,9 @@ reposdir=/etc/yum.repos.d,/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/t
self._setupNFS(INSTALL_TREE, server, path, opts)
else:
# check for media, fall back to default repo
- devices = opticalInstallMedia(storage.devicetree)
- if devices:
- self._setupDevice(devices[0], mountpoint=INSTALL_TREE)
- self.install_device = devices[0]
+ device = opticalInstallMedia(storage.devicetree)
+ if device:
+ self.install_device = device
if self._repoNeedsNetwork(repo) and not hasActiveNetDev():
raise NoNetworkError
@@ -331,7 +332,7 @@ reposdir=/etc/yum.repos.d,/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/t
if baseurl and
not baseurl.startswith("http:") and
not baseurl.startswith("ftp:"):
- baseurl = "file:/" + INSTALL_TREE
+ baseurl = "file://" + INSTALL_TREE
log.debug("adding yum repo %s with baseurl %s and mirrorlist %s"
% (name, baseurl, mirrorlist))
--
1.7.9.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
03-06-2012, 03:07 PM
Chris Lumens
Enable auto-detection of optical install media if no method/repo given.
> Also, fix a stupid typo in forming the file:// URL that would prevent any
> repos of a type other than http or ftp from working.
I've been using this one, and it works well.
- Chris
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list