Bug 120040

Summary: handbook: diskless operation: populate root doesn't populate
Product: Documentation Reporter: Marius Nuennerich <marius.nuennerich>
Component: Books & ArticlesAssignee: Tom Rhodes <trhodes>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Marius Nuennerich 2008-01-27 12:30:03 UTC
http://www.freebsd.org/doc/en/books/handbook/network-diskless.html
Chapter 29.7.2.7.1 as of cvs revision 1.404 states that one should
populate the new root with make buildworld && make buildkernel, but
afaik these targets do not populate DESTDIR.

Fix: 

It should be changed back to make world && make kernel (rev. 1.380) or
make buildworld buildkernel installworld installkernel maybe works too.
Comment 1 Tom Rhodes freebsd_committer freebsd_triage 2008-01-27 12:58:55 UTC
> It should be changed back to make world && make kernel (rev. 1.380) or
> make buildworld buildkernel installworld installkernel maybe works too.

On my system, a make world doesn't work (see Makefile) and
I used DESTDIR to populate.  In fact, this is how I did the
actual population and build in my PXE environment at work:

/bin/sh
export DESTDIR=/home/pxe/system
mkdir $DESTDIR
cd /usr/src
echo "options BOOTP" >> sys/i386/conf/GENERIC
echo "options BOOTP_NFSROOT" >> sys/i386/conf/GENERIC
make buildworld
make kernel
make installworld
make distribution
cp sys/i386/conf/GENERIC.hints /home/pxe/system/boot/device.hints
cp /usr/obj/usr/src/sys/boot/i386/pxeldr/pxeboot /tftpboot

In fact, looking over my records, I could probably re-write
that entire section based on my notes from around six
months ago.  :)

-- 
Tom Rhodes
Comment 2 Marius NĂ¼nnerich 2008-02-27 20:50:34 UTC
> In fact, looking over my records, I could probably re-write
> that entire section based on my notes from around six
> months ago.  :)

Looks good.

One needs to specify next-server in dhcpd.conf as since version 3.0.3
the isc dhcp daemon does not have a reasonable default for that anymore.

My PVR with etherboot wouldn't work otherwise.

 - Marius
Comment 3 Tom Rhodes freebsd_committer freebsd_triage 2008-12-23 12:46:15 UTC
State Changed
From-To: open->closed

The next-server and "make distribution" parts have already 
been documented.  I have updated the port directory location 
though, thanks! 


Comment 4 Tom Rhodes freebsd_committer freebsd_triage 2008-12-23 12:46:15 UTC
Responsible Changed
From-To: freebsd-doc->trhodes

Over to me.