diff options
author | Darren Hart <dvhart@linux.intel.com> | 2013-02-21 16:56:57 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-22 06:39:07 -0800 |
commit | e96d541c8edccbb69602eace900ce9293ee12d22 (patch) | |
tree | 0dd3224b9308d62d3807ee3372c966a4ee6006ef /meta-yocto | |
parent | 5b9f8ae5447a76d979faecfdbde3bbb5b11d1656 (diff) | |
download | poky-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')
-rw-r--r-- | meta-yocto/recipes-core/tiny-init/files/init | 4 | ||||
-rw-r--r-- | meta-yocto/recipes-core/tiny-init/tiny-init.bb | 2 |
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 @@ | |||
4 | mount none -t proc /proc | 4 | mount none -t proc /proc |
5 | mount none -t sysfs /sys | 5 | mount none -t sysfs /sys |
6 | 6 | ||
7 | # Ensure devtmpfs is mounted, it must be done manually with initramfs | ||
8 | mount none -t devtmpfs /dev | ||
9 | |||
7 | # Setup PTY infrastructure | 10 | # Setup PTY infrastructure |
8 | mknod /dev/ptmx c 5 2 | ||
9 | mkdir /dev/pts | 11 | mkdir /dev/pts |
10 | mount none -t devpts /dev/pts | 12 | mount 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" | |||
3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
5 | 5 | ||
6 | PR = "r1" | 6 | PR = "r2" |
7 | 7 | ||
8 | RDEPENDS_${PN} = "busybox" | 8 | RDEPENDS_${PN} = "busybox" |
9 | 9 | ||