by Steven St.Laurent - steven@403forbidden.net
|
Intro Ducks Ingredients Security Contributing Files Distro Files Files Mfsroot Patch PXEBoot Boot Kernel Services INETD DHCP TFTP NFS FTP Details How it works Loader.rc Installing Finishing |
FILES part 2
- /tftpboot
the tftpboot directory is where your important files will reside
but we need to populate it.
Mine looks like this
boot/
boot/boot1*
boot/boot2
boot/loader
boot/loader.rc
kernel
mfsroot
pxeboot
create a boot directory inside the tftpboot directory.
$ cd /opt/export/tftpboot
$ mkdir /opt/export/tftpboot/
$ mkdir /opt/export/tftpboot/boot
$ cp /usr/src/sys/boot/i386/loader/loader /opt/export/tftpboot/boot/
$ cp /usr/src/sys/boot/i386/loader/boot1 /opt/export/tftpboot/boot/
$ cp /usr/src/sys/boot/i386/loader/boot2 /opt/export/tftpboot/boot/
next we ned to create the loader.rc to be places in
/opt/export/tftpboot/boot/
$ vi /opt/export/tftpboot/boot/loader.rc
your loader.rc might want to include specific modules or specific
configuration settings.
Mine looks like this:
echo
echo Loading Kernel...
echo
load /kernel
set console="comconsole"
echo
echo Loading mfsroot
echo
load -t mfs_root /mfsroot
echo booting...
echo \007\007
echo initializing...
set vfs.root.mountfrom="ufs:/dev/md0c"
set console="comconsole"
boot
this file is very important. It tells the kernel which kernel to boot and
where to mount the mfsroot file. We also setup the console to go out the
serial console so we can monitor our progress.
|