tiny-init: Mount devtmpfs manually

When using an initramfs, the default for poky-tiny, the kernel can't
automatically mount devtmpfs. Ensure it is mounted. This eliminates the
need to create the ptmx device.

(From meta-yocto rev: b0ae9ca7078ec57fe21ccd8a14302a075ca07aa3)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Darren Hart 2013-02-21 16:56:57 -08:00 committed by Richard Purdie
parent 5b9f8ae544
commit e96d541c8e
2 changed files with 4 additions and 2 deletions

View File

@ -4,8 +4,10 @@
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
mknod /dev/ptmx c 5 2
mkdir /dev/pts
mount none -t devpts /dev/pts

View File

@ -3,7 +3,7 @@ DESCRIPTION = "Basic init system for poky-tiny"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"
PR = "r2"
RDEPENDS_${PN} = "busybox"