summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-05-15 20:45:04 +0000
committerChris Lumens <clumens@redhat.com>2006-05-15 20:45:04 +0000
commit2682ce3d14b574af1c82558b5e3d0d61e33b2968 (patch)
treef1f5fefab997f4920695cae1a5a24ca592812d95 /loader2
parente790ab88373501cf069023550912b8dcbdd390a0 (diff)
downloadanaconda-2682ce3d14b574af1c82558b5e3d0d61e33b2968.tar.gz
anaconda-2682ce3d14b574af1c82558b5e3d0d61e33b2968.tar.xz
anaconda-2682ce3d14b574af1c82558b5e3d0d61e33b2968.zip
Allow MTU to be specified in a kickstart file as well as on the command
line (#191328).
Diffstat (limited to 'loader2')
-rw-r--r--loader2/net.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/loader2/net.c b/loader2/net.c
index e3876e7fd..9d668b908 100644
--- a/loader2/net.c
+++ b/loader2/net.c
@@ -873,7 +873,7 @@ void setKickstartNetwork(struct loaderData_s * loaderData, int argc,
char ** argv, int * flagsPtr) {
char * arg, * bootProto = NULL, * device = NULL, *ethtool = NULL, * class = NULL;
char * essid = NULL, * wepkey = NULL, * onboot = NULL;
- int noDns = 0, noksdev = 0, rc;
+ int noDns = 0, noksdev = 0, rc, mtu = 0;
poptContext optCon;
struct poptOption ksOptions[] = {
@@ -882,6 +882,7 @@ void setKickstartNetwork(struct loaderData_s * loaderData, int argc,
{ "dhcpclass", '\0', POPT_ARG_STRING, &class, 0, NULL, NULL },
{ "gateway", '\0', POPT_ARG_STRING, NULL, 'g', NULL, NULL },
{ "ip", '\0', POPT_ARG_STRING, NULL, 'i', NULL, NULL },
+ { "mtu", '\0', POPT_ARG_INT, &mtu, 0, NULL, NULL },
{ "nameserver", '\0', POPT_ARG_STRING, NULL, 'n', NULL, NULL },
{ "netmask", '\0', POPT_ARG_STRING, NULL, 'm', NULL, NULL },
{ "nodns", '\0', POPT_ARG_NONE, &noDns, 0, NULL, NULL },
@@ -980,6 +981,10 @@ void setKickstartNetwork(struct loaderData_s * loaderData, int argc,
loaderData->wepkey = strdup(wepkey);
free(wepkey);
}
+
+ if (mtu) {
+ loaderData->mtu = mtu;
+ }
}
if (noDns) {