Pass the hostname we got from DHCP to the kernel so that machines can

share a read-only NFS root.
This commit is contained in:
Garrett Wollman 2005-04-17 21:38:22 +00:00
parent db7354df52
commit 98576a6485

View File

@ -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++;