Permalink
Browse files

use mr2 style unified fstab

Change-Id: If3b0aab31c7f3cd31ca3c309595916779ea94f5f
  • Loading branch information...
1 parent 3c06a8f commit 4aad1bf23da674102eb92ad2f8b3e0b37cab1f8f @KonstaT committed Aug 5, 2013
Showing with 16 additions and 37 deletions.
  1. +1 −1 BoardConfig.mk
  2. +0 −26 prebuilt/system/etc/vold.fstab
  3. +15 −0 ramdisk/fstab.blade
  4. +0 −10 recovery/recovery.fstab
View
@@ -41,7 +41,7 @@ BOARD_CUSTOM_GRAPHICS := ../../../device/zte/blade/recovery/graphics.c
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/zte/blade/recovery/recovery_ui.c
TARGET_PREBUILT_RECOVERY_KERNEL := device/zte/blade/recovery/recovery_kernel
TARGET_RECOVERY_INITRC := device/zte/blade/recovery/recovery.rc
-TARGET_RECOVERY_FSTAB := device/zte/blade/recovery/recovery.fstab
+TARGET_RECOVERY_FSTAB := device/zte/blade/ramdisk/fstab.blade
# Kernel
TARGET_KERNEL_SOURCE := kernel/zte/zte-kernel-msm7x27
@@ -1,26 +0,0 @@
-## Vold 2.0 Generic fstab
-## - San Mehat (san@android.com)
-##
-
-#######################
-## Regular device mount
-##
-## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
-## label - Label for the volume
-## mount_point - Where the volume will be mounted
-## part - Partition # (1 based), or 'auto' for first usable partition.
-## <sysfs_path> - List of sysfs paths to source devices
-######################
-
-## Example of a standard sdcard mount for the emulator / Dream
-# Mounts the first usable partition of the specified device
-#dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
-
-## Example of a dual card setup
-# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
-# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
-
-## Example of specifying a specific partition for mounts
-# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
-
-dev_mount sdcard /storage/sdcard0 auto /devices/platform/msm_sdcc.1/mmc_host/mmc0
View
@@ -0,0 +1,15 @@
+# Android fstab file.
+# The filesystem that contains the filesystem checker binary (typically /system) cannot
+# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
+
+#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
+system /system yaffs2 ro,barrier=1 recoveryonly
+cache /cache yaffs2 nosuid,nodev,barrier=1 recoveryonly
+userdata /data yaffs2 nosuid,nodev,noauto_da_alloc,barrier=1 recoveryonly
+misc /misc mtd defaults recoveryonly
+boot /boot mtd defaults recoveryonly
+recovery /recovery mtd defaults recoveryonly
+/dev/block/mmcblk0p1 /sdcard auto defaults recoveryonly
+/dev/block/mmcblk0p2 /sd-ext auto defaults recoveryonly
+
+/devices/platform/msm_sdcc.1/mmc_host/mmc0 /storage/sdcard0 auto defaults voldmanaged=sdcard:auto
View
@@ -1,10 +0,0 @@
-# mount point fstype device [device2]
-
-/boot mtd boot
-/cache yaffs2 cache
-/data yaffs2 userdata
-/misc mtd misc
-/recovery mtd recovery
-/sdcard vfat /dev/block/mmcblk0 /dev/block/mmcblk0p1
-/system yaffs2 system
-/sd-ext auto /dev/block/mmcblk0p2

0 comments on commit 4aad1bf

Please sign in to comment.