summaryrefslogtreecommitdiffstats
path: root/meta-yocto/recipes-core
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2012-08-01 12:01:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-01 23:11:18 +0100
commit62d42fe3cfa575cb97b484ccf7b2e9a25cc50770 (patch)
tree4bf5a69e2d51ca6fcec7b24492f25c2e3173848b /meta-yocto/recipes-core
parentacde166f5b865c9d11ca6ec0457fb5cb1f1793f2 (diff)
downloadpoky-62d42fe3cfa575cb97b484ccf7b2e9a25cc50770.tar.gz
tiny-init: Setup /dev/ptmx in init
Fixes [YOCTO #2382] Without /dev/ptmx, ssh logins fail with: "PTY allocation request failed on channel 0" As the kernel support already exists in the linux-yocto-tiny kernel, create the /dev/ptmx device in tiny-init so it works as intended. (From meta-yocto rev: 1b71b9363aa49521896694e43a63cb6fca487da4) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-yocto/recipes-core')
-rw-r--r--meta-yocto/recipes-core/tiny-init/files/init3
-rw-r--r--meta-yocto/recipes-core/tiny-init/tiny-init.bb2
2 files changed, 4 insertions, 1 deletions
diff --git a/meta-yocto/recipes-core/tiny-init/files/init b/meta-yocto/recipes-core/tiny-init/files/init
index bf2817d099..89fe39ec5a 100644
--- a/meta-yocto/recipes-core/tiny-init/files/init
+++ b/meta-yocto/recipes-core/tiny-init/files/init
@@ -3,6 +3,9 @@
3# Mount the Linux kernel virtual filesystems 3# Mount the Linux kernel virtual filesystems
4mount none -t proc /proc 4mount none -t proc /proc
5mount none -t sysfs /sys 5mount none -t sysfs /sys
6
7# Setup PTY infrastructure
8mknod /dev/ptmx c 5 2
6mkdir /dev/pts 9mkdir /dev/pts
7mount none -t devpts /dev/pts 10mount none -t devpts /dev/pts
8 11
diff --git a/meta-yocto/recipes-core/tiny-init/tiny-init.bb b/meta-yocto/recipes-core/tiny-init/tiny-init.bb
index f5892ed472..394d70fd0d 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 = "r0" 6PR = "r1"
7 7
8RDEPENDS_${PN} = "busybox" 8RDEPENDS_${PN} = "busybox"
9 9