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:
parent
db7354df52
commit
98576a6485
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user