Frenzy Handbook | |
start => doc_en |
Frenzy bootstrappingkernel stageBootstrapping starts from that BIOS passes control to cdboot bootmanager which is located in bootable area of CD. cdboot runs BTX loader (/boot/loader). BTX loader reads its configuration files, loads kernel and necessary modules and displays boot menu (with the logo). Then kernel loading and devices identification are run. There is specified in the loader configuration that root file system shouyld be mounted from compressed image /boot/frenzyroot.gz. After loading kernel root file system is mounted from this image and control is passed to /sbin/init process which is run from this place. frenzyroot stagefrenzyroot image contains several base utilities :
There are several important files in /etc also, including rc-scripts specially written for Frenzy. /sbin/init runs /etc/rc. This is a non-standard script which performs all initial tuning and booting LiveCD. 1. Bootable device searchingFirst we should find and mount the disk the system is booted from. Script looks file frenzy.uzip at every CD-ROM and USB drives in an order. If such file was found the disk that contains in is mounted in /Frenzy/boot directory. 2. Mounting compressed file system
frenzy.uzip contains compressed file system that will be used as a root. Yet it cannot be mounted over existing root FS we do the following. File system from frenzy.uzip is mounted at /Frenzy/fs directory, after that we use mount_nullfs to mount directories 3. Locale settingNice font is loaded and screenmap is set up. This is neede to display russian menu. 4. Calculating the size of RAM-diskWe calculate the volume of system RAM. Hence we set up RAM-disk size by default (10,15,30 and 45 megs). 5. Boot menuBoot menu is displayed on screen. We set up boot parameters (its descriptioon see here). 6. Creating RAM-disk
We create RAM-disk with specified size and mount it to /Frenzy/ramdisk. Directories 7. Patches loadingWe look through the directory /Frenzy/boot/frenzy.conf. If there are scripts whose names are end with ‘.patch’ we perform them. This is useful in case if you add some pathes for configuration files but do not want to rebuild compressed image. 8. 'toram' boot mode (optional)If the parameter ‘toram’ was chosen then loading to memory will be performed:
After loading to RAM CD-ROM drive is freed and tray is ejected. 9. Looking for partitions on HDDBy default are mounted in “read only” mode. The next menu options are available:
10. fromhdd boot mode (optional)
If
After the bootstrapping from hard disk CD-ROM is freed and its tray is ejected. 11. Miscellaneous
At last, /etc/rc is run. base stageRunning system rc-scripts almost identical to standard FreeBSD’s one. But there are some differences :
1. Some part of rc-scripts is edited such way to not to run them if
2. After all rc-scripts are run
|