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 05-18-2012, 08:45 PM
Will Woods
 
Default dracut parse-kickstart: fix 'nfs --opts ...'

We were putting the ops at the end; they're actually supposed to in
front of the server. Whoops.

Also, use .format() in all the string formatting in Method, for
consistency's sake.
---
dracut/parse-kickstart | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index aa4e0e8..acb41ea 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -32,13 +32,14 @@ class Method(commands.method.F14_Method):
method="cdrom"
elif self.method == "harddrive":
if self.biospart:
- method="bd:%s:%s" % (self.partition, self.dir)
+ method="bd:{0.partition}:{0.dir}".format(self)
else:
- method="hd:%s:%s" % (self.partition, self.dir)
+ method="hd:{0.partition}:{0.dir}".format(self)
elif self.method == "nfs":
- method="nfs:%s:%s" % (self.server, self.dir)
if self.opts:
- method += ":%s" % self.opts
+ method="nfs:{0.opts}:{0.server}:{0.dir}".format(se lf)
+ else:
+ method="nfs:{0.server}:{0.dir}".format(self)
elif self.method == "url":
# FIXME: self.proxy, self.noverifyssl
method = self.url
--
1.7.7.6

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

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