Skip to contentSkip to conversation

tiny-init: Mount devtmpfs manually

PATCH New Darren Hart 1 participant 1 message Feb 22, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta-yocto/recipes-core/tiny-init/files/init   | 4 +++-
 meta-yocto/recipes-core/tiny-init/tiny-init.bb | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
meta-yocto/recipes-core/tiny-init/files/init +3 -1
index 89fe39e..4b78f01 100644
@@ -4,8 +4,10 @@
 mount none -t proc /proc
 mount none -t sysfs /sys
 
+# Ensure devtmpfs is mounted, it must be done manually with initramfs
+mount none -t devtmpfs /dev
+
 # Setup PTY infrastructure
-mknod /dev/ptmx c 5 2
 mkdir /dev/pts
 mount none -t devpts /dev/pts
 
meta-yocto/recipes-core/tiny-init/tiny-init.bb +1 -1
index 394d70f..5d90051 100644
@@ -3,7 +3,7 @@ DESCRIPTION = "Basic init system for poky-tiny"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
-PR = "r1"
+PR = "r2"
 
 RDEPENDS_${PN} = "busybox"
 
Signature · 1 line
1.8.1.2