From 17009a37b2571be21a91aaf4aef7a6fedcfeba9c Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Mon, 16 May 2011 12:06:43 +0100 Subject: busybox: make sure /proc and /sys are mounted before starting mdev --- recipes/busybox/busybox_1.18.4.bbappend | 2 ++ recipes/busybox/files/mdev | 9 +++++++++ recipes/images/micro-base-image.bb | 1 + 3 files changed, 12 insertions(+) create mode 100644 recipes/busybox/files/mdev (limited to 'recipes') diff --git a/recipes/busybox/busybox_1.18.4.bbappend b/recipes/busybox/busybox_1.18.4.bbappend index febfad6..435ba43 100644 --- a/recipes/busybox/busybox_1.18.4.bbappend +++ b/recipes/busybox/busybox_1.18.4.bbappend @@ -1,2 +1,4 @@ +PR .= ".2" + THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:" diff --git a/recipes/busybox/files/mdev b/recipes/busybox/files/mdev new file mode 100644 index 0000000..14ba837 --- /dev/null +++ b/recipes/busybox/files/mdev @@ -0,0 +1,9 @@ +#!/bin/sh + +mount proc /proc -t proc +mount sys /sys -t sysfs +mount -t tmpfs tmpfs /dev -o size=64k,mode=0755 +mkdir /dev/pts /dev/shm +mount -t devpts devpts /dev/pts +echo "/sbin/mdev" > /proc/sys/kernel/hotplug +mdev -s diff --git a/recipes/images/micro-base-image.bb b/recipes/images/micro-base-image.bb index 95993d6..3080657 100644 --- a/recipes/images/micro-base-image.bb +++ b/recipes/images/micro-base-image.bb @@ -8,6 +8,7 @@ IMAGE_INSTALL = "base-files \ base-passwd \ dropbear \ netbase \ + busybox \ busybox-mdev \ sysvinit sysvinit-pidof" IMAGE_LINGUAS = "" -- cgit 1.2.3-korg