btfs 1.2

btfs can be used as /init for constructing a run-time environment before running the real init.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
2.5/5 19
DEVELOPED BY:
Luciano Rocha
HOMEPAGE:
ftp.gil.di.uminho.pt
CATEGORY:
ROOT \ System \ Boot
btfs can be used as /init for constructing a run-time environment before running the real init.

The project supports extracting compressed (*.cgz, *.cbz2) and uncompressed (*.co) cpios located on a compile-defined directory (/).

Also, it creates a tmpfs filesystem as the new root, if / isn't one already and the purpose of the initramfs isn't for starting a system in another location (disk, network, etc.). That will allow for the data on / to be swapped to disk when swap devices are activated later.

Usage: install as /init on an initramfs.

Boot description:

1. if / isn't a tmpfs or a ramfs or the program isn't init (pid == 1), it refuses to run

2a. if / isn't a tmpfs:
i. mounts a tmpfs on an empty /newroot*;
ii. extracts all cpio files (*.co *.cgz *.cbz2) under ARCHIVE_DIR (/) to the tmpfs;
iii. moves all other files on / to the tmpfs;
iv. remounts /newroot as the root filesystem;
v. chroots;
2b. extracts all cpio files (*.co *.cgz *.cbz2) under ARCHIVE_DIR (/) to /;

3. opens /dev/console;

4a. if there's a root= argument to the kernel, and it isn't /dev/ram*, executes /sbin/boot_other as init (change with option boot_other=).
4b. executes /sbin/init (change with option init=).

Last updated on March 23rd, 2007

#init implementation #constructing run-time #linux boot #btfs #init #constructing #run-time

Add your review!

SUBMIT