Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2002 18:38:32 +0000 (UTC)
From:      omestre <omestre@SDF.LONESTAR.ORG>
To:        freebsd-hackers@freebsd.org
Subject:   bootp_subr.c hacked!
Message-ID:  <Pine.NEB.4.44.0212061802070.16224-100000@sdf.lonestar.org>

next in thread | raw e-mail | index | archive | help

 Hi...
 Some days ago, i have posted a message, for help in the configuration
of a diskless machines. About how could i to configure ip, mask, net,
root filesystem, and file handle, without dynamic protocols (bootp/pxe)...
 i did not receive any message...
 Now i did some adaptations in the bootp_subr.c code, and fix the problem.
 Now, if the user edit the kernel with the options:
  NFS
  NFS_ROOT
  BOOTP
  BOOTP_NFSROOT
 and with bootp_subr.c code changed, he will can set the follow variables
in loader.conf:
boot.netif.hostname=""
boot.netif.hwaddr=""
boot.netif.ip=""
boot.netif.netmask=""
boot.nfsroot.server=""
boot.nfsroot.path=""
vfs.root.mountfrom=""
 so, the machine will be able to mount your root filesystem from a nfs
server.
 This solution can be used in a environment that the machines have hard
drives.. /tmp/ /var/spool/ and swap in the Hard drive... and do not need
dhcp or pxe servers. :)
 The diskless kernel is loaded from the hard drive, by the loader.
 Maybe, most people use the dynamic solution... but:
 first: if you use the loader pxe or etherboot, you need a floppy disk to
its image... no no no
 if you put the loader image in the hard drive, you will not be able to
use the entire HD. :(
 The loader role is necessary, so, i guess that the hard drive is the
better place.
 Well, i guess that the FreeBSD project, can put my adaptation in the
distribution (that honor!), with another "option". For that people
that think like me... :)
 The work is done already... now the hakers can fix my mistakes, and is
more one feature to the great FreeBSD operating system!

 The link to get the "changed source code" is:
http://oslo.procergs.com.br/tor/leal/FreeBSD/bootp_subr.txt

 Thanks
omestre@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.4.44.0212061802070.16224-100000>