scripting the buildworld/installworld process

Charles Howse chowse at charter.net
Tue Sep 2 12:05:16 PDT 2003


Well, it worked!  After a fashion...
This morning I swapped my small primary HDD and larger secondary HDD,
then created the new slices/mount points, and re-installed:
Primary Master 8.something G:
/	500M
Swap	256M
/var	500M
/tmp	500M
/usr	<remainder> over 6G

Secondary Slave 2.1G:
/usr/obj	1000M
/disk2 <remainder> about 1G
Drat!  I should have put the swap partition on the second HDD!  Oh well.

Getting the times for the different processes into a log worked well,
the entire buildworld/installworld took about 2.5 hours on my Celeron
300 w/ 64M.

I did have to re-edit the first script, because it wasn't able to
process all the sections that had this:
\time -aho $blog make buildworld | 
tee $tlog | 
tail -n 50 $tlog > $bdir/buildworld.log

It would just zoom through the whole script and write empty log files.
Finished in about 2 seconds!  :-)

I left the sections of the script like this:
\time -aho $blog make buildworld

Once I got everything tweaked, it worked fine!

I did have a problem with portupgrade -Na, it finished with the
following message:
The following packages were not installed or upgraded:
! Cvsup-without-gui-16.1g	Unknown build error
! XFree86-4-libraries		Unknown build error
* mtools				Skipped

Any ideas what may have caused this?  I've been trying to get mtools
installed, and it always fails.


Thanks to all who responded!  I appreciate it!
Scripts and build.log attached.
Run in the following order:
Update
Update1
Update2
upgrade
-------------- next part --------------
A non-text attachment was scrubbed...
Name: upgrade
Type: application/octet-stream
Size: 170 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030902/37a75a60/upgrade.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 228 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030902/37a75a60/build.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update
Type: application/octet-stream
Size: 366 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030902/37a75a60/update.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update1
Type: application/octet-stream
Size: 1938 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030902/37a75a60/update1.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update2
Type: application/octet-stream
Size: 1166 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030902/37a75a60/update2.obj


More information about the freebsd-questions mailing list