[OE-core] [PATCH 4/9] initramfs-framework: fix an error in finish module
Chen Qi
Qi.Chen at windriver.com
Mon Jun 16 10:46:26 UTC 2014
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 at windriver.com>
---
.../initrdscripts/initramfs-framework/finish | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish
index 325f47b..1ff0e3e 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'..."
--
1.7.9.5
More information about the Openembedded-core
mailing list