[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Do not store mount options in loaderData->instRepo (#467760)
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Do not store mount options in loaderData->instRepo (#467760)
- Date: Fri, 31 Oct 2008 17:08:39 -1000
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]