]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
tiny-init: Setup /dev/ptmx in init
authorDarren Hart <dvhart@linux.intel.com>
Wed, 1 Aug 2012 19:01:23 +0000 (12:01 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Aug 2012 21:55:25 +0000 (22:55 +0100)
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.

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>
meta-yocto/recipes-core/tiny-init/files/init
meta-yocto/recipes-core/tiny-init/tiny-init.bb

index bf2817d099eb2fc95c45c8c23172193aba57cae6..89fe39ec5a2f5b70ad27c7eaef5bf5082d7259f5 100644 (file)
@@ -3,6 +3,9 @@
 # Mount the Linux kernel virtual filesystems
 mount none -t proc /proc
 mount none -t sysfs /sys
+
+# Setup PTY infrastructure
+mknod /dev/ptmx c 5 2
 mkdir /dev/pts
 mount none -t devpts /dev/pts
 
index f5892ed472a10227c2e2e41d2987bbb677e259b2..394d70fd0d715a23602f1b1c42daa0cf43ec7acf 100644 (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 = "r0"
+PR = "r1"
 
 RDEPENDS_${PN} = "busybox"