[OE-core] [PATCH 0/3] Improve devtmpfs and cpio support
Nathan Rossi
nathan.rossi at xilinx.com
Tue Dec 9 05:50:04 UTC 2014
The following patches improve cpio support as well as improving the
handling of devtmpfs and consolidating the setup of /dev mounts.
Currently udev and mdev handle mounting /dev seperately in their own
init scripts, as well as handling of /dev/pts and /dev/shm. Both however
implement a similar method of mounting and creating directories.
Additionally there is overlap between the udev/mdev init scripts and the
devpts script. This patch attempts to clean up the mounting and setup
so that it is done at a seperate level to the dev manager itself. So
that machines/bsps can override the fstab and have custom /dev mount
setups. This setup also allows for a system which does not use a dev
manager and relies on devtmpfs for /dev nodes, which is useful for very
constrained setups.
Additionally this patch set resolves the need for the devpts init
scripts, and on top of that prepares the /dev/pts interface early enough
for other rc scripts like bootlogd so that there is no need for the
CONFIG_LEGACY_PTYS to be enabled in the kernel.
Nathan Rossi (3):
image_types.bbclass: Populate cpio /init as symlink
base-files: Add entry for /dev for cpio compatibility
initscripts: Handle mounting /dev in mountall.sh
meta/classes/image_types.bbclass | 6 ++++-
meta/recipes-core/base-files/base-files/fstab | 1 +
meta/recipes-core/busybox/files/mdev | 13 ----------
.../initscripts/initscripts-1.0/devpts.sh | 28 ----------------------
.../initscripts/initscripts-1.0/mountall.sh | 14 +++++++++++
meta/recipes-core/initscripts/initscripts_1.0.bb | 6 -----
meta/recipes-core/udev/udev/init | 14 -----------
7 files changed, 20 insertions(+), 62 deletions(-)
delete mode 100755 meta/recipes-core/initscripts/initscripts-1.0/devpts.sh
--
2.1.1
More information about the Openembedded-core
mailing list