[PATCH] Fix the handling of kickstart NFS repos with options (#1045528)
David Shea
dshea at redhat.com
Thu Jan 23 22:51:37 UTC 2014
The order of everything got jumbled up when converting from a kickstart
command to an anaconda command line option and back. Anaconda expects
NFS URLs to have the options first.
---
dracut/parse-kickstart | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index 157ff91..e7e5337 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -66,9 +66,10 @@ class HardDrive(commands.harddrive.FC3_HardDrive):
class NFS(commands.nfs.FC6_NFS):
def dracut_args(self, args, lineno, obj):
- method="nfs:%s:%s" % (self.server, self.dir)
if self.opts:
- method += ":%s" % self.opts
+ method = "nfs:%s:%s:%s" % (self.opts, self.server, self.dir)
+ else:
+ method="nfs:%s:%s" % (self.server, self.dir)
return "inst.repo=%s" % method
--
1.8.4.2
More information about the anaconda-patches
mailing list