|
@@ -1,45 +1,21 @@
|
|
|
-# Copyright (c) 2017, The Linux Foundation. All rights reserved.
|
|
|
|
|
-#
|
|
|
|
|
-# Redistribution and use in source and binary forms, with or without
|
|
|
|
|
-# modification, are permitted provided that the following conditions are
|
|
|
|
|
-# met:
|
|
|
|
|
-# * Redistributions of source code must retain the above copyright
|
|
|
|
|
-# notice, this list of conditions and the following disclaimer.
|
|
|
|
|
-# * Redistributions in binary form must reproduce the above
|
|
|
|
|
-# copyright notice, this list of conditions and the following
|
|
|
|
|
-# disclaimer in the documentation and/or other materials provided
|
|
|
|
|
-# with the distribution.
|
|
|
|
|
-# * Neither the name of The Linux Foundation nor the names of its
|
|
|
|
|
-# contributors may be used to endorse or promote products derived
|
|
|
|
|
-# from this software without specific prior written permission.
|
|
|
|
|
-#
|
|
|
|
|
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
|
|
|
|
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
|
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
|
|
|
|
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
|
|
|
|
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
|
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
|
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
|
|
|
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
|
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
|
|
|
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
|
|
|
|
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
+# 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
|
|
|
|
|
|
|
|
-# This is stock variant of fstab
|
|
|
|
|
|
|
+# mount point fstype device device2 flags
|
|
|
|
|
|
|
|
-#device mount point fstype [device2] [length=]
|
|
|
|
|
|
|
+/boot emmc /dev/block/bootdevice/by-name/boot flags=slotselect;backup=1;flashimg=1
|
|
|
|
|
+/system ext4 /dev/block/bootdevice/by-name/system flags=slotselect;backup=1;flashimg=1
|
|
|
|
|
+/system_image emmc /dev/block/bootdevice/by-name/system flags=slotselect;backup=1
|
|
|
|
|
+/vendor ext4 /dev/block/bootdevice/by-name/vendor flags=slotselect;display="Vendor";backup=1;flashimg=1
|
|
|
|
|
+/vendor_image emmc /dev/block/bootdevice/by-name/vendor flags=slotselect;backup=1
|
|
|
|
|
+/data ext4 /dev/block/bootdevice/by-name/userdata flags=encryptable=footer;backup=1;flashimg=1
|
|
|
|
|
+/persist ext4 /dev/block/bootdevice/by-name/persist flags=display="Persist";backup=1;flashimg=1
|
|
|
|
|
+/bt_firmware vfat /dev/block/bootdevice/by-name/bluetooth flags=display="Bluetooth";backup=1;slotselect;flashimg=1
|
|
|
|
|
+/modem emmc /dev/block/bootdevice/by-name/modem flags=slotselect;backup=1;display="Modem";flashimg=1
|
|
|
|
|
+/firmware vfat /dev/block/bootdevice/by-name/modem flags=display="Firmware";slotselect;backup=1;mounttodecrypt;fsflags=context=u:object_r:firmware_file:s0
|
|
|
|
|
+/efs1 emmc /dev/block/bootdevice/by-name/modemst1 flags=backup=1;display=EFS;flashimg=1
|
|
|
|
|
+/efs2 emmc /dev/block/bootdevice/by-name/modemst2 flags=backup=1;subpartitionof=/efs1;flashimg=1
|
|
|
|
|
|
|
|
-/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1 wait,slotselect
|
|
|
|
|
-/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc wait,check,fileencryption=ice
|
|
|
|
|
-/dev/block/mmcblk1p1 /sdcard vfat nosuid,nodev wait
|
|
|
|
|
-/dev/block/bootdevice/by-name/boot /boot emmc defaults defaults
|
|
|
|
|
-/dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults
|
|
|
|
|
-/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
|
|
|
|
|
-/dev/block/bootdevice/by-name/vendor /vendor ext4 ro,barrier=1 wait,slotselect
|
|
|
|
|
-/dev/block/bootdevice/by-name/modem /modem vfat defaults wait,slotselect
|
|
|
|
|
-/dev/block/bootdevice/by-name/persist /persist ext4 defaults defaults
|
|
|
|
|
-/dev/block/bootdevice/by-name/bluetooth /bt_firmware vfat defaults wait,slotselect
|
|
|
|
|
-
|
|
|
|
|
-# USB-OTG
|
|
|
|
|
-/devices/platform/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.*.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto
|
|
|
|
|
-/devices/*/xhci-hcd.0.auto/usb* auto vfat defaults voldmanaged=usb:auto
|
|
|
|
|
|
|
+# Removable storage
|
|
|
|
|
+/usb-otg auto /dev/block/sda1 /dev/block/sda flags=removable;storage;display="USB OTG"
|