]> code.ossystems Code Review - openembedded-core.git/commit
initscripts/sysfs.sh: Mount devtmpfs on /dev/ if needed
authorMike Looijmans <mike.looijmans@topic.nl>
Tue, 20 Oct 2015 06:43:47 +0000 (08:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:19:36 +0000 (12:19 +0100)
commita1cfb8a2691ed36700c96cbc1a0e744494294d2b
tree4f9b431143632084658f30e75c2a471e808d910e
parent5ed4332eeb96beff53242942a1eb878ab4831847
initscripts/sysfs.sh: Mount devtmpfs on /dev/ if needed

When booting from an initrd disk, or when the kernel config option
DEVTMPFS_MOUNT isn't provided, /dev/ will not be mounted at boot.

This small addition will check if /dev/ is "useful", and if not, will
mount devtmpfs if the kernel provides it.

With this change, it is possible to set an initscripts style image type
to "cpio.gz" and boot it as initrd. Without this change, the image won't
work properly because of the missing devices.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh