English Dutch (nl_NL)
# vi /etc/resolv.conf
# mount /cfg
# cp /etc/resolv.conf /cfg
# umount /cfg
The partition containing [.filename]#/cfg# should be mounted only at boot time and while overriding the configuration files.
Keeping [.filename]#/cfg# mounted at all times is not a good idea, especially if the NanoBSD system runs off a mass storage medium that may be adversely affected by a large number of writes to the partition (like when the filesystem syncer flushes data to the system disks).
Building a NanoBSD Image
A NanoBSD image is built using a simple [.filename]#nanobsd.sh# shell script, which can be found in the [.filename]#/usr/src/tools/tools/nanobsd# directory. This script creates an image, which can be copied on the storage medium using the man:dd[1] utility.
The necessary commands to build a NanoBSD image are:
# cd /usr/src/tools/tools/nanobsd <.>
# sh nanobsd.sh <.>
# cd /usr/obj/nanobsd.full <.>
# dd if=_.disk.full of=/dev/da0 bs=64k <.>
<.> Change the current directory to the base directory of the NanoBSD build script.
<.> Start the build process.
<.> Change the current directory to the place where the built images are located.
<.> Install NanoBSD onto the storage medium.
Options When Building a NanoBSD Image
When building a NanoBSD image, several build options can be passed to [.filename]#nanobsd.sh# on the command line. These options can have a significant impact on the build process.
Some options are for verbosity purposes:
`-h`: prints the help summary page.
`-q`: makes output quieter.
`-v`: makes output more verbose
Some other options can be used to restrict the building process. Sometimes it is not necessary to rebuild everything from sources, especially if an image has already been built, and only little change is made.
`-k`: do not build the kernel
`-w`: do not build world