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 |
BOOT/ DIRECTORY FILES
We need to create a boot directory inside the tftpboot directory.
This will contain files necessary for the kernel to boot.
$ 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 need to create the loader.rc to be placed 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 Loading Kernel...
load /kernel
set console=comconsole
echo Loading mfsroot
load -t mfs_root /mfsroot
echo booting...
echo \007\007
echo initializing...
set vfs.root.mountfrom="ufs:/dev/md0c"
boot
If you are familiar with the bootloader this will look familiar. If not then
you will want to cut and paste my example. If you need to load a special
kernel, discussed next, you can change the load /kernel line as you need.
Notice we also load the mfsroot file here and we mount it as our root partition.
|