Share Next Entry
Using upstart in Fedora rawhide
Fedora 15 definitively replaced init daemon implementation upstart with new systemd. But it is still possible to use upstart. Only few steps are needed:

1. install upstart and dependencies

# yum install upstart
upstart.x86_64 0:1.0-1.fc16
Dependency Installed:
initscripts-legacy.x86_64 0:9.26-1.fc16

initscripts-legacy.x86_64 is sub-package of initscripts. It contains basic rc scripts including rc.sysinit which were separated from initscripts after change to systemd units was made.

2. configure bootloader
Kernel or initramfs loader (dracut) runs after initialization /sbin/init by default. This can be changed by adding init=<path> to kernel command line. Upstart installs its init to /sbin/upstart. To allow boot with upstart automatically, add new kernel entry to /etc/grub.conf:

title Fedora - upstart (2.6.38-0.rc7.git2.3.fc16.x86_64)
    root (hd0,0)
    kernel /vmlinuz-2.6.38-0.rc7.git2.3.fc16.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap init=/sbin/upstart
    initrd /initramfs-2.6.38-0.rc7.git2.3.fc16.x86_64.img

(note: Change kernel and initrd versions according to your system)

3. enable selinux
Selinux is no more initializated in intramfs as this responsibility was moved to systemd. Upstart can't initialize selinux so there's needed to recreate initramfs with selinux support. Edit /etc/dracut.conf.d/01-dist.conf and recreate initramfs:

# echo 'add_dracutmodules+=" selinux "' >> /etc/dracut.conf.d/01-dist.conf
# dracut --force

4. set default runlevel
upstart's job rcS runs defaul runlevel 3. If you want to boot into runlevel 5, edit your /etc/inittab

# echo 'id:5:initdefault:' >> /etc/inittab

5. reboot


Log in

No account? Create an account