initng on fedora core (18 second boot time)

Justin Conover justin.conover at gmail.com
Fri Jul 29 02:59:33 UTC 2005


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.

ftp://65.28.94.10/pub/bootchartd/initng-bootchart.png

ftp://65.28.94.10/pub/bootchartd/default-bootchart-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(YET)!!

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

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
#system/coldplug


Add some extras to default.runlevel
vi /etc/initng/default.runlevel
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.

ngc -u system/coldplug

To add/del service from starting up

ng-update add coldplug default
ng-update del system/coldplug


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)

# ngc -s
Next Generation init Control.
written by Jimmy Wennlund <jimmy.wennlund at 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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initial.i
Type: application/octet-stream
Size: 2257 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20050728/8a0fd0f9/attachment.obj 


More information about the test mailing list