Dear congatec git server users, we are currently restructuring the ARM-NXP namespace. Some repositories are moved to a different location. The restructuring will be completed next Monday at the latest. We strongly recommend that you update the repositories after the restructuring. We apologize for the inconvenience.

Best regards, congatec ARM software team

Commit a94da017 authored by Dmitry Eremin-Solenikov's avatar Dmitry Eremin-Solenikov Committed by Martin Jansa

initramfs-debug: add simple init script for debugging

Add a tiny simple debug script that will mount all available virtual
file systems and then execute a shell.
Signed-off-by: default avatarDmitry Eremin-Solenikov <>
Signed-off-by: default avatarMartin Jansa <>
parent 22990fdc
do_mount_fs() {
grep -q "$1" /proc/filesystems || return
test -d "$2" || mkdir -p "$2"
mount -t "$1" "$1" "$2"
do_mknod() {
test -e "$1" || mknod "$1" "$2" "$3" "$4"
mkdir -p /proc
mount -t proc proc /proc
do_mount_fs sysfs /sys
do_mount_fs debugfs /sys/kernel/debug
do_mount_fs devtmpfs /dev
do_mount_fs devpts /dev/pts
do_mount_fs tmpfs /dev/shm
mkdir -p /run
mkdir -p /var/run
do_mknod /dev/console c 5 1
do_mknod /dev/null c 1 3
do_mknod /dev/zero c 1 5
exec sh </dev/console >/dev/console 2>/dev/console
SUMMARY = "Extremely basic live image init script"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://"
S = "${WORKDIR}"
do_install() {
install -m 0755 ${WORKDIR}/ ${D}/init
inherit allarch
FILES_${PN} += " /init "
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment