summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/dhcp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdk-stage1/dhcp.c b/mdk-stage1/dhcp.c
index de91adae0..3dbefa0bb 100644
--- a/mdk-stage1/dhcp.c
+++ b/mdk-stage1/dhcp.c
@@ -211,8 +211,12 @@ static void parse_reply(struct bootp_request * breq, struct interface_info * int
unsigned char * chptr;
unsigned char option, length;
- if (breq->bootfile && strlen(breq->bootfile) > 0 && IS_NETAUTO)
- stage2_kickstart = strdup(breq->bootfile);
+ if (breq->bootfile && strlen(breq->bootfile) > 0) {
+ if (IS_NETAUTO)
+ stage2_kickstart = strdup(breq->bootfile);
+ else
+ log_message("warning: ignoring `bootfile' DHCP server parameter, since `netauto' boot parameter was not given; reboot with `linux netauto' (and anymore useful boot parameters) if you want `bootfile' to be used as a `auto_inst.cfg.pl' stage2 configuration file");
+ }
memcpy(&intf->ip, &breq->yiaddr, 4);