switch to ext4

Change-Id: Ica63dd712dd49cbc044c887974694d620507fe38
diff --git a/BoardConfig.mk b/BoardConfig.mk
index d83e84f..c50826b 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -12,3 +12,11 @@
 
 BOARD_EGL_CFG := device/generic/goldfish/opengl/system/egl/egl.cfg
 
+TARGET_USERIMAGES_USE_EXT4 := true
+BOARD_SYSTEMIMAGE_PARTITION_SIZE := 576716800
+BOARD_USERDATAIMAGE_PARTITION_SIZE := 209715200
+BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
+BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
+BOARD_FLASH_BLOCK_SIZE := 512
+TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
+
diff --git a/init.mini-emulator.rc b/init.mini-emulator.rc
index 147746b..d6ebc1f 100644
--- a/init.mini-emulator.rc
+++ b/init.mini-emulator.rc
@@ -15,9 +15,6 @@
 
     mount debugfs debugfs /sys/kernel/debug
 
-#on fs
-#    setprop ro.crypto.umount_sd false
-
 on post-fs-data
     mkdir /data/media 0770 media_rw media_rw
     # Set indication (checked by vold) that we have finished this action
@@ -33,6 +30,7 @@
     setprop ARGH ARGH
     setprop net.eth0.gw 10.0.2.2
     setprop net.eth0.dns1 10.0.2.3
+    setprop net.dns1 10.0.2.3
     setprop net.gprs.local-ip 10.0.2.15
     setprop ro.radio.use-ppp no
     setprop ro.build.product generic
@@ -72,6 +70,9 @@
 # supported, and arbitrary breakage may result if you specify
 # something else.
 
+on fs
+        mount_all /fstab.goldfish
+
 service goldfish-setup /system/etc/init.goldfish.sh
     user root
     group root
diff --git a/mini_emulator_common.mk b/mini_emulator_common.mk
index 3bee201..9a41ba3 100644
--- a/mini_emulator_common.mk
+++ b/mini_emulator_common.mk
@@ -44,4 +44,5 @@
     frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf \
     hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf \
     device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml \
-    device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml
+    device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml \
+    device/generic/goldfish/fstab.goldfish:root/fstab.goldfish