Files
poky/meta-poky/recipes-core/tiny-init/files/init
Richard Purdie 9d5483c375 meta-yocto: Rename to meta-poky to better match its purpose
"poky" is the reference distribution for the Yocto Project. This renames
the layer within the meta-yocto repository to meta-poky, better matching
what that layer contains.

A layer.conf file is left behind as this is the only way which allows
existing builds to migrate safely to the new name. It will be removed
at some future point.

This change requires the corresponding OE-Core change to handle the
migration and the changes to the infrastructure to support this.

(From meta-yocto rev: d0c88df2e14672fca4ebbde93c5efbcd0e4fa9b6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-28 11:31:17 +00:00

545 B

#!/bin/sh

Mount the Linux kernel virtual filesystems

mount none -t proc /proc mount none -t sysfs /sys

Ensure devtmpfs is mounted, it must be done manually with initramfs

mount none -t devtmpfs /dev

Setup PTY infrastructure

mkdir /dev/pts mount none -t devpts /dev/pts

ifup lo

Allow for distro or local customizations

if [ -f /etc/rc.local ] ; then . /etc/rc.local fi

Become session leader and try to find a real tty (e.g. ttyS0)

while true; do setsid cttyhack sh echo "Console sh exited with $?, respawning..." sleep 1 done