]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
initramfs-framework: fix an error in finish module
authorChen Qi <Qi.Chen@windriver.com>
Wed, 21 May 2014 08:02:41 +0000 (04:02 -0400)
committerChen Qi <Qi.Chen@windriver.com>
Mon, 16 Jun 2014 10:35:49 +0000 (18:35 +0800)
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>
meta/recipes-core/initrdscripts/initramfs-framework/finish

index 325f47be4096c0881f318f34c8441d5ed1313ea7..1ff0e3e7e9404c37512fc21054bf4b1268864c4d 100755 (executable)
@@ -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'..."