In this mode, the first Linux partition is mounted as /data,
and the first fat partition is mounted as /mnt/sdcard.
TARGET_PREBUILT_APPS := $(subst $(LOCAL_PATH)/,,$(wildcard $(LOCAL_PATH)/app/*))
TARGET_KERNEL_CONFIG := $(LOCAL_PATH)/vm_defconfig
+PRODUCT_COPY_FILES += $(LOCAL_PATH)/vold.fstab:system/etc/vold.fstab
+
include $(GENERIC_X86_ANDROID_MK)
;;
esac
+ # try to find the first Linux partition
+ [ -z "$DATA" ] && DATA=`fdisk -l /dev/sd? | grep ^/dev | grep '83.*Linux' | head -1 | awk '{ print $1 }'`
+
# return error to use auto-detect
return 1
}
--- /dev/null
+dev_mount sdcard /mnt/sdcard auto /devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda