summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-23 20:35:40 +0000
committerMatt Wilson <msw@redhat.com>1999-09-23 20:35:40 +0000
commit03d50c93d4062ec4de4379a6461e7bfb4d4d6da3 (patch)
tree8d30a76c421cce9b1dd7a908ae9c9e7460ae4f67
parent42539118bb64d0a97ee6e81b4fffe735bc9c32d4 (diff)
downloadanaconda-03d50c93d4062ec4de4379a6461e7bfb4d4d6da3.tar.gz
anaconda-03d50c93d4062ec4de4379a6461e7bfb4d4d6da3.tar.xz
anaconda-03d50c93d4062ec4de4379a6461e7bfb4d4d6da3.zip
1) handle ks option
2) build ks=nfs remote file name properly for copy
-rw-r--r--loader/loader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c
index b08df7afd..f7636f0c3 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1423,6 +1423,8 @@ static int parseCmdLineFlags(int flags, char * cmdLine, char ** ksSource) {
flags |= LOADER_FLAGS_MODDISK;
else if (!strcasecmp(argv[i], "rescue"))
flags |= LOADER_FLAGS_RESCUE;
+ else if (!strcasecmp(argv[i], "ks"))
+ flags |= LOADER_FLAGS_KICKSTART;
else if (!strcasecmp(argv[i], "ks=floppy"))
flags |= LOADER_FLAGS_KSFLOPPY;
else if (!strncasecmp(argv[i], "ks=hd:", 6)) {
@@ -1491,7 +1493,7 @@ int kickstartFromNfs(char * location, moduleList modLoaded, moduleDeps modDeps,
}
fullFn = malloc(strlen(file) + 20);
- sprintf(fullFn, "/tmp/ks/%s", file);
+ sprintf(fullFn, "/tmp/nfskd/%s", file);
copyFile(fullFn, location);
umount("/tmp/nfs");