summaryrefslogtreecommitdiffstats
path: root/meta-yocto/recipes-core/tiny-init
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2013-02-21 16:56:57 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-22 06:39:07 -0800
commite96d541c8edccbb69602eace900ce9293ee12d22 (patch)
tree0dd3224b9308d62d3807ee3372c966a4ee6006ef /meta-yocto/recipes-core/tiny-init
parent5b9f8ae5447a76d979faecfdbde3bbb5b11d1656 (diff)
downloadpoky-e96d541c8edccbb69602eace900ce9293ee12d22.tar.gz
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>
Diffstat (limited to 'meta-yocto/recipes-core/tiny-init')
-rw-r--r--meta-yocto/recipes-core/tiny-init/files/init4
-rw-r--r--meta-yocto/recipes-core/tiny-init/tiny-init.bb2
2 files changed, 4 insertions, 2 deletions
diff --git a/meta-yocto/recipes-core/tiny-init/files/init b/meta-yocto/recipes-core/tiny-init/files/init
index 89fe39ec5a..4b78f017fe 100644
--- a/meta-yocto/recipes-core/tiny-init/files/init
+++ b/meta-yocto/recipes-core/tiny-init/files/init
@@ -4,8 +4,10 @@
4mount none -t proc /proc 4mount none -t proc /proc
5mount none -t sysfs /sys 5mount none -t sysfs /sys
6 6
7# Ensure devtmpfs is mounted, it must be done manually with initramfs
8mount none -t devtmpfs /dev
9
7# Setup PTY infrastructure 10# Setup PTY infrastructure
8mknod /dev/ptmx c 5 2
9mkdir /dev/pts 11mkdir /dev/pts
10mount none -t devpts /dev/pts 12mount none -t devpts /dev/pts
11 13
diff --git a/meta-yocto/recipes-core/tiny-init/tiny-init.bb b/meta-yocto/recipes-core/tiny-init/tiny-init.bb
index 394d70fd0d..5d90051b1d 100644
--- a/meta-yocto/recipes-core/tiny-init/tiny-init.bb
+++ b/meta-yocto/recipes-core/tiny-init/tiny-init.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Basic init system for poky-tiny"
3LICENSE = "MIT" 3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
5 5
6PR = "r1" 6PR = "r2"
7 7
8RDEPENDS_${PN} = "busybox" 8RDEPENDS_${PN} = "busybox"
9 9