From: SeokYeon Hwang Date: Tue, 23 Jun 2015 15:17:45 +0000 (+0900) Subject: ramfs: suppress warnings when filesystem is mounted X-Git-Tag: submit/tizen/20160422.055611~1^2~41^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=044bc1baef66e85ef3ba78287e64a3866b45ce0e;p=sdk%2Femulator%2Femulator-kernel.git ramfs: suppress warnings when filesystem is mounted Change-Id: Iea6900dbc0c03d6d13a1448d5d3294ecb9824b7f Signed-off-by: SeokYeon Hwang --- diff --git a/ramfs/init b/ramfs/init index ddf9001896ab..593cd04d3045 100644 --- a/ramfs/init +++ b/ramfs/init @@ -25,7 +25,7 @@ rescue_shell() { } mount_fs() { - /bin/busybox mount -o rw $1 $2 || rescue_shell + /bin/busybox mount -t $FSTYPE -o rw $1 $2 || rescue_shell } /bin/busybox mkdir -p /dev @@ -50,6 +50,12 @@ NEW_ROOT="/new_root" INIT=$(cmdline init) CONSOLE=$(cmdline console) ROOT=$(cmdline root) +FSTYPE=$(cmdline fstype) + +# set default fs type +if [ -z $FSTYPE]; then + FSTYPE=ext4 +fi # mount image... echo -e "${COLOR_BLUE}Mount image...${NO_COLOR}"