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 > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 07-14-2011, 08:38 AM
Radek Vykydal
 
Default Fix nfsiso install with options (#699640)

Ack.

On 07/14/2011 10:23 AM, Martin Gracik wrote:

If we're using nfsiso method with options,
the options are prepended before the nfs url,
so we need to parse the methodstr correctly.
---
image.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/image.py b/image.py
index 60f03aa..fb2f083 100644
--- a/image.py
+++ b/image.py
@@ -128,6 +128,7 @@ def getMediaId(path):
def mountDirectory(methodstr, messageWindow):
if methodstr.startswith("hd:"):
method = methodstr[3:]
+ options = '
if method.count(":") == 1:
(device, path) = method.split(":")
fstype = "auto"
@@ -138,7 +139,8 @@ def mountDirectory(methodstr, messageWindow):
and not device.startswith("LABEL="):
device = "/dev/%s" % device
elif methodstr.startswith("nfsiso:"):
- device = methodstr[7:]
+ (options, host, path) = iutil.parseNfsUrl(methodstr)
+ device = "%s:%s" % (host, path)
fstype = "nfs"
else:
return
@@ -149,7 +151,7 @@ def mountDirectory(methodstr, messageWindow):

while True:
try:
- isys.mount(device, "/mnt/isodir", fstype = fstype)
+ isys.mount(device, "/mnt/isodir", fstype=fstype, options=options)
break
except SystemError, msg:
log.error("couldn't mount ISO source directory: %s" % msg)


_______________________________________________
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 10:23 PM.

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