summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-05-21 04:02:41 -0400
committerChen Qi <Qi.Chen@windriver.com>2014-06-16 18:35:49 +0800
commiteee3628e158ce86c73022c5860a2510f32fd1392 (patch)
tree7105fa8c776089877521b0e1c352a6768d32aa69
parent36c954849cf9e9c0c4885b3b300ae23ba883ad72 (diff)
downloadopenembedded-core-contrib-eee3628e158ce86c73022c5860a2510f32fd1392.tar.gz
openembedded-core-contrib-eee3628e158ce86c73022c5860a2510f32fd1392.tar.bz2
openembedded-core-contrib-eee3628e158ce86c73022c5860a2510f32fd1392.zip
initramfs-framework: fix an error in finish module
It's possible that the /dev directory doesn't exist under $ROOTFS_DIR. This should not suggest any invalidity. So instead of erroring out when $ROOTFS_DIR/dev doesn't exist, we create it. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/finish4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish
index 325f47be40..1ff0e3e7e9 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/finish
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/finish
@@ -28,9 +28,7 @@ finish_run() {
fi
fi
- if [ ! -d $ROOTFS_DIR/dev ]; then
- fatal "ERROR: There's no '/dev' on rootfs."
- fi
+ mkdir -p $ROOTFS_DIR/dev
info "Switching root to '$ROOTFS_DIR'..."