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/recipes-core/tiny-init/files | |
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/recipes-core/tiny-init/files')
-rw-r--r-- | meta-yocto/recipes-core/tiny-init/files/init | 4 |
1 files changed, 3 insertions, 1 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 | ||