First
1.) My laptop went from 1 minute and 20 seconds to 18 second boot up
2.) That's just
Second ****WARNING, don't use or use at your hacking skills
1.) If the system is on LVM
2.) USB keyboard only
Third ***NOTE
1.) If your system explodes, eats your childern or floods your toliet
2.) WHOOPS!
If you have those 2 things this will probably not work at first!
With the help of Jimmy from initng project I was able to get initng up and running on my laptop in a pretty short time. End result is 1:20 vs. :18 second boot times.
http://65.28.94.10/pub/bootchartd/initng-bootchart.png
http://65.28.94.10/pub/bootchartd/de...ootchart-1.png
WARNINGS
I haven’t been able to get this to work on a system running LVM and usb doesn’t work during startup!!
Code:
wget -c http://initng.thinktux.net/download/initng-0.1.6.tar.bz2
tar xvjpf initng-0.1.6.tar.bz2
cd initng-0.1.6
./configure
make
su -c “make install”
Things to change before you reboot:
Edit grub to include duplicate kernel entrys and edit one to use initng instead of default init and change
root=LABEL=/1 to root=/dev/hda3 (what ever your / is on)
]vi /boot/grub/grub.conf
Code:
title Fedora Core (2.6.12-1.1398_FC4-initng)
root (hd0,0)
kernel /vmlinuz-2.6.12-1.1398_FC4 ro root=/dev/hda3 vga=0x317 init=/sbin/initng
#init=/sbin/bootchartd-ng
initrd /initrd-2.6.12-1.1398_FC4.img
title Fedora Core (2.6.12-1.1398_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.12-1.1398_FC4 ro root=LABEL=/1 rhgb quiet init=/sbin/bootchartd
initrd /initrd-2.6.12-1.1398_FC4.img
Edit the system.runlevel for initng and comment out coldplug
vi /etc/initng/system.runlevel
Add some extras to default.runlevel
vi /etc/initng/default.runlevel
Code:
daemon/xfs
daemon/gdm
daemon/hald
system/usb
system/alsasound
To start services after the system is up (in 18 seconds), like coldplug to control my usb mouse
Code:
ngc -u system/coldplug
To add/del service from starting up
Code:
ng-update add system/coldplug default
ng-update add daemon/gdm default
ng-update del system/coldplug default
ng-update del daemon/gdm default
I assume lvm bits need to be added to /etc/initng/system/initial.i file included.
There are some other errors during boot up, but nothing that looks chaotic and again, lvm = no at the moment and if you have usb kbd you might be out of look (unless you can ssh to it)
Code:
# ngc -s
Next Generation init Control.
written by Jimmy Wennlund <jimmy.wennlund@gmail.com>
hh:mm:ss service (fetching a 01124 byte table) : status
----------------------------------------------------------
21:40:54 default : done.
21:40:51 system : done.
21:40:54 net/eth0 : done.
21:40:51 daemon/sshd : running.
20:40:50 daemon/acpid : running.
21:40:49 daemon/xfs : running.
21:40:51 daemon/gdm : running.
21:40:51 daemon/hald : running.
20:40:50 system/usb : done.
21:40:49 system/alsasound : done.
20:40:48 system/initial : done.
20:40:49 system/mountroot : done.
20:40:50 system/mountfs : done.
21:40:49 system/bootmisc : done.
01:40:48 system/clock : done.
20:40:48 system/hostname : done.
20:40:49 system/modules : done.
20:40:49 system/static-modules : done.
20:40:49 system/hdparm : done.
21:40:49 system/keymaps : done.
20:40:50 system/urandom : done.
21:40:49 system/consolefont : done.
20:40:49 system/swap : done.
21:40:51 net/lo : done.
20:40:50 daemon/agetty : done.
20:40:50 daemon/agetty/tty2 : running.
20:40:50 daemon/agetty/tty3 : running.
20:40:50 daemon/agetty/tty4 : running.
20:40:50 daemon/agetty/tty5 : running.
20:40:50 daemon/agetty/tty6 : running.
20:40:50 daemon/agetty/tty7 : running.
20:40:50 daemon/agetty/tty8 : running.
20:40:50 daemon/agetty/tty9 : running.
20:40:49 daemon/acpid/modules : done.
20:40:50 system/localmount : done.
21:40:49 daemon/prexfs : done.
21:40:51 daemon/dbus : running.
21:40:49 system/alsasound/loadmodules : done.
21:40:54 up : done.
21:40:54 daemon/agetty/tty1 : running.
Thanks again Jimmy!