ramfs: suppress warnings when filesystem is mounted
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 23 Jun 2015 15:17:45 +0000 (00:17 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 24 Jun 2015 02:10:49 +0000 (11:10 +0900)
Change-Id: Iea6900dbc0c03d6d13a1448d5d3294ecb9824b7f
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
ramfs/init

index ddf9001..593cd04 100644 (file)
@@ -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}"