[PATCH] Do not store mount options in loaderData->instRepo (#467760)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mount options are handled elsewhere, we do not need to store them
in the instRepo variable.
---
 loader/nfsinstall.c |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c
index 1e8a530..9a61cad 100644
--- a/loader/nfsinstall.c
+++ b/loader/nfsinstall.c
@@ -345,16 +345,9 @@ void setKickstartNfs(struct loaderData_s * loaderData, int argc,
 
     substr = strstr(dir, ".img");
     if (!substr || (substr && *(substr+4) != '\0')) {
-        if (mountOpts) {
-            if (asprintf(&(loaderData->instRepo), "nfs:%s:%s:%s", host, dir, mountOpts) == -1) {
-                logMessage(CRITICAL, "%s: %d: %m", __func__, __LINE__);
-                abort();
-            }
-        } else {
-            if (asprintf(&(loaderData->instRepo), "nfs:%s:%s", host, dir) == -1) {
-                logMessage(CRITICAL, "%s: %d: %m", __func__, __LINE__);
-                abort();
-            }
+        if (asprintf(&(loaderData->instRepo), "nfs:%s:%s", host, dir) == -1) {
+            logMessage(CRITICAL, "%s: %d: %m", __func__, __LINE__);
+            abort();
         }
 
         logMessage(INFO, "results of nfs, host is %s, dir is %s, opts are '%s'",
-- 
1.6.0.2

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux