From eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 Mon Sep 17 00:00:00 2001 From: Dave Cobbley Date: Tue, 14 Aug 2018 10:05:37 -0700 Subject: [Subtree] Removing import-layers directory As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley Signed-off-by: Brad Bishop --- poky/meta-poky/recipes-core/tiny-init/files/init | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 poky/meta-poky/recipes-core/tiny-init/files/init (limited to 'poky/meta-poky/recipes-core/tiny-init/files/init') diff --git a/poky/meta-poky/recipes-core/tiny-init/files/init b/poky/meta-poky/recipes-core/tiny-init/files/init new file mode 100644 index 000000000..9140e9558 --- /dev/null +++ b/poky/meta-poky/recipes-core/tiny-init/files/init @@ -0,0 +1,26 @@ +#!/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 -- cgit v1.2.1