btfs iconbtfs 1.2

btfs can be used as /init for constructing a run-time environment before running the real init.
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, 19:16 GMT
price:
FREE!
developed by:
Luciano Rocha
license type:
MIT/X Consortium License 
category:
ROOT \ System \ Boot

FREE!

In a hurry? Add it to your Download Basket!

user rating 19

UNRATED
2.5/5
 

0/5

Add your review!

SUBMIT