i installed upstart 0.5
following patch is needed to make it (upstart 0.5) work WITHOUT INITRAMDISK
add it before setsid (); in init/main.c
Code:
/* Mount /proc
* hack needed when not running initramfs
*/
system ("mount /proc");
compile with debian/rules binary and install the packages written to ..
BEFORE REBOOTING with the new upstart 0.5:
/etc/init.jobs.d => /etc/event.d (new location for upstart jobs)
- sudo mkdir /etc/init
- sudo ln -s /etc/event.d /etc/init/jobs.d
i slightly changed jdong's script to reflect new syntax and introduce adapted dependencies (note that i commented out many services that i do not run (no code line has been deleted, only commented out))
- see attachment upconv.py -
then i ran
./upconv.py /etc/rc2.d/
and copied anything from jobs.d/ to /etc/init/jobs.d/
and applied some manual tweaks:
comment out cups #start on .. (i seldomly need printing)
rm /etc/init/jobs.d/{loadcpufreq,console_screen_kbd_sh,readahead,rc2,r cS}
(loadcpufreq removed because it's statically compiled into my kernel, readahead because my X301's flash-drive doesn't need it and console_screen_kbd_sh because it's superseded by setupcon and not used anyway)
also remove rc2 and rcS as i now have native upstart boot i don't want these to be loaded anymore (some services don't like being started twice either)
so this is my ls /etc/init/jobs.d
Code:
acpid cups mountall_sh rc6 sysklogd
atd dbus mountdevsubfs_sh rc-default system_tools_backends
avahi_daemon gdm mountkernfs_sh rc_local tty1
bluetooth hal mountoverflowtmp rcS-sulogin tty2
bootmisc_sh hostname_sh mtab_sh readahead_desktop tty3
checkfs_sh hwclockfirst_sh networking resolvconf udev
checkroot_sh hwclock_sh NetworkManager rmnologin udev_finish
console_setup keyboard_setup policykit screen_cleanup urandom
control-alt-delete klogd procps ssh x11_common
cpufrequtils loopback rc0 stop_readahead
cron mountall_bootclean_sh rc1 sulogin
the dependency graph is included as attachment. to generate one yourself use jdong's script with
Code:
./depchart.py /etc/init/jobs.d/ > depchart-upstart-new.graph && dot -Tpng -o upstart-new.png depchart-upstart-new.graph && eog upstart-new.png
NOTE:
If you ever run into an unbootable system add init=/bin/bash to the kernel command line in GRUB and when booted into bash run /etc/init.d/rcS
you'll be able to start fixing from there..
enjoy fast booting and thanks for the initial effort!
Bookmarks