From 98576a6485a584b51b0065940a117ac0995d6f1e Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Sun, 17 Apr 2005 21:38:22 +0000 Subject: [PATCH] Pass the hostname we got from DHCP to the kernel so that machines can share a read-only NFS root. --- sys/boot/i386/libi386/pxe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/boot/i386/libi386/pxe.c b/sys/boot/i386/libi386/pxe.c index a0f66a711e80..cd5af3715f0b 100644 --- a/sys/boot/i386/libi386/pxe.c +++ b/sys/boot/i386/libi386/pxe.c @@ -308,6 +308,7 @@ pxe_open(struct open_file *f, ...) } setenv("boot.nfsroot.server", inet_ntoa(rootip), 1); setenv("boot.nfsroot.path", rootpath, 1); + setenv("dhcp.host-name", hostname, 1); } } pxe_opens++;