summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/fstab.firmware4
-rw-r--r--common/fstab.persist4
-rw-r--r--common/init.firmware.rc11
-rw-r--r--common/pixel-common-device.mk6
4 files changed, 25 insertions, 0 deletions
diff --git a/common/fstab.firmware b/common/fstab.firmware
new file mode 100644
index 0000000..5968dcc
--- /dev/null
+++ b/common/fstab.firmware
@@ -0,0 +1,4 @@
+# Android fstab file.
+
+#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
+/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect
diff --git a/common/fstab.persist b/common/fstab.persist
new file mode 100644
index 0000000..f3840b1
--- /dev/null
+++ b/common/fstab.persist
@@ -0,0 +1,4 @@
+# Keep persist in an fstab file, since we need to run fsck on it after abnormal shutdown.
+
+#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
+/dev/block/platform/soc/1d84000.ufshc/by-name/persist /mnt/vendor/persist ext4 nosuid,nodev,noatime,barrier=1 wait
diff --git a/common/init.firmware.rc b/common/init.firmware.rc
new file mode 100644
index 0000000..2895a4d
--- /dev/null
+++ b/common/init.firmware.rc
@@ -0,0 +1,11 @@
+on early-init
+ mount_all /vendor/etc/fstab.persist --early
+
+on fs
+ mount_all /vendor/etc/fstab.firmware --early
+
+on late-fs
+ mount_all /vendor/etc/fstab.firmware --late
+
+on property:sys.boot_completed=1
+ swapon_all /vendor/etc/fstab.firmware
diff --git a/common/pixel-common-device.mk b/common/pixel-common-device.mk
new file mode 100644
index 0000000..2cc5a81
--- /dev/null
+++ b/common/pixel-common-device.mk
@@ -0,0 +1,6 @@
+PRODUCT_COPY_FILES += \
+ hardware/google/pixel/common/fstab.firmware:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.firmware \
+ hardware/google/pixel/common/fstab.persist:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.persist \
+ hardware/google/pixel/common/init.firmware.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.firmware.rc
+
+BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/common