From a327af363f1b0b10f1a6332da1ad62e52598f237 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 3 Feb 2004 13:10:01 +0000 Subject: document when netauto is not provided and bootfile DHCP server param is given --- mdk-stage1/dhcp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mdk-stage1/dhcp.c') 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); -- cgit v1.2.1