[PKG-OpenRC-Debian] Bug#827733: Better manage /sbin/init by busybox

Benda Xu heroxbd at gentoo.org
Sat Jul 16 13:37:41 UTC 2016


Hi Jon,

Very interesting patch!

A package busybox-init, similar to busybox-syslogd, makes more sense to
me.  It can be made openrc-neutral.

The Debian openrc package is a drop-in replacement to sysv-rc, the
latter provides /etc/init.d/rc and /etc/init.d/rcS.  OpenRC follows this
convention so that /etc/inittab (of sysvinit) is not needed to be
updated.

It is also desirable to run busybox-init + sysv-rc or busybox-init +
file-rc.  It can be achieved if the /etc/inittab of busybox-init is
written as that in the appendix.


@debian-boot team, do you think such a busybox-init package feasible?  If
so I am going to reassign this bug to src:busybox.

Yours,
Benda

Appendix: busybox-inittab

::sysinit:/etc/init.d/rcS
::wait:/etc/init.d/rc 2
::shutdown:/etc/init.d/rc 0

# What to do when CTRL-ALT-DEL is pressed.
::ctrlaltdel:/etc/init.d/rc 6

# /sbin/getty invocations for the runlevels.
#
::respawn:/sbin/getty 38400 tty1
::respawn:/sbin/getty 38400 tty2
::respawn:/sbin/getty 38400 tty3
::respawn:/sbin/getty 38400 tty4
::respawn:/sbin/getty 38400 tty5
::respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#::respawn:/sbin/getty -L ttyS0 9600 vt100
#::respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#::respawn:/sbin/mgetty -x0 -s 57600 ttyS3



More information about the OpenRC-devel mailing list