summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-03 13:10:01 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-03 13:10:01 +0000
commita327af363f1b0b10f1a6332da1ad62e52598f237 (patch)
treef1838f1a2ee23d58b3798ab5178194eda87f3721 /mdk-stage1
parentf456dfc07650c00fe35053b21d852e77d3e55272 (diff)
downloaddrakx-backup-do-not-use-a327af363f1b0b10f1a6332da1ad62e52598f237.tar
drakx-backup-do-not-use-a327af363f1b0b10f1a6332da1ad62e52598f237.tar.gz
drakx-backup-do-not-use-a327af363f1b0b10f1a6332da1ad62e52598f237.tar.bz2
drakx-backup-do-not-use-a327af363f1b0b10f1a6332da1ad62e52598f237.tar.xz
drakx-backup-do-not-use-a327af363f1b0b10f1a6332da1ad62e52598f237.zip
document when netauto is not provided and bootfile DHCP server param is given
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);