github.com/finit-project / finit

Fast init for Linux. Cookies included

Commit log
8ad87be 🏷 0.1Add dist target, build timestamp and version information Claudio Matsuoka 18 years ago
37144d5 Add Metalshark's patches: Claudio Matsuoka 18 years ago
5d74d27 Don't try to trap SIGKILL or SIGSTOP Claudio Matsuoka 18 years ago
7c3e97c Add makepath() to avoid forking mkdir Claudio Matsuoka 18 years ago
145da57 Fixed random seed and signal 0 bugs from original fastinit Claudio Matsuoka 18 years ago
d7ee060 Added MIT license to finit-mod.c Claudio Matsuoka 18 years ago
53e92b2 Renamed ffinit.c to finit-alt.c, added finit-mod.c Claudio Matsuoka 18 years ago
66af037 Fixed shutdown.fb file name (reported by Metalshark) Claudio Matsuoka 18 years ago
7348225 Reset mtab on boot (workaround, fix it properly later) Claudio Matsuoka 18 years ago
fd56a4d Drop configuration file, use mount -a to mount /home Claudio Matsuoka 18 years ago
README
☰
Eeepc "fastinit" reimplementations
----------------------------------

finit.c is a reimplementation of the Asus Eeepc fastinit program based
on its library calls. It tries to be an accurate re-creation and keeps
the original bugs and lack of optimization.

finit-mod.c is a fixed/improved version of finit.c.

finit-alt.c is a fixed/improved version of finit.c for alternative Linux
distributions running on the Eeepc (previously ffinit.c). Currently able
to boot unmodified Mandriva Linux.

See Makefile for configurable parameters to better suit your system.


* Eeepc boot process

The essential steps in the boot process carried out in initramfs are:

 ROOT=`sed 's!.*root=\([^ ]*\).*!\1!' < /proc/cmdline`
 mount -t proc proc /proc
 mount -t ext2 -o ro $ROOT /mnt-system
 mount -t ext3 -o rw /dev/sda2 /mnt-user
 mount -t unionfs -o dirs=/mnt-user=rw:/mnt-system=ro unionfs /mnt
 mount --move /mnt-system /mnt/mnt
 umount -l /mnt-user
 umount /proc
 exec switch_root /mnt /sbin/fastinit "$@" </mnt/dev/console >/mnt/dev/console

If mounting the root filesystem fails, execute a maintenance shell. If
mounting the user filesystem fails, fsck and reboot.


* Utilities available in the Eeepc initramfs busybox:

[		cat		cp		cut		dd
dmesg		echo		env		expr		false
grep		insmod		ln		losetup		ls
mdev		mkdir		mknod		mount		mv
pivot_root	realpath	rm		rmmod		sed
sh		sleep		switch_root	test		true
umount		vi


* Devices in the Eeepc initramfs /dev:

console  fb  null  ram0  sda1  sda2  sda3  sr0  tty0