# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2026 Pooya Parsa <pooya@pi0.io>
# /etc/inittab of the Alpine image (busybox init, the minirootfs's
# /sbin/init): the kw layer's rc, welcome and net (/usr/lib/kw/, from the
# base), the qemu-user binfmt formats, the console's login shell on hvc0
# (kwtty login: the user "user", or kw.user= on the kernel command line)
# and kwtty serve (respawned), the layer's shutdown at poweroff and reboot.

# unkernel: the user's shell on the console, and kwtty for the host's
# terminal sessions over vsock (it sleeps when there is no vsock device).
::sysinit:/usr/lib/kw/rc
::sysinit:/usr/lib/kw/welcome
::sysinit:/usr/lib/kw/net
::sysinit:/etc/kw-binfmt.sh
hvc0::respawn:/usr/bin/kwbox tty login
::respawn:/usr/bin/kwbox tty serve
::ctrlaltdel:/sbin/reboot
::shutdown:/usr/lib/kw/shutdown
