From 044bc1baef66e85ef3ba78287e64a3866b45ce0e Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Wed, 24 Jun 2015 00:17:45 +0900 Subject: [PATCH] ramfs: suppress warnings when filesystem is mounted Change-Id: Iea6900dbc0c03d6d13a1448d5d3294ecb9824b7f Signed-off-by: SeokYeon Hwang --- ramfs/init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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}" -- 2.34.1