Skip to content

Commit

Permalink
Move persist setting back to individual devices
Browse files Browse the repository at this point in the history
Bug: 168440095
Test: boot to home with persist and firmware mounted
Change-Id: I6d9476202c6d8b6c543f2e0df8fd699a68f13d80
  • Loading branch information
Adam Shih committed Sep 21, 2020
1 parent 88da23b commit 490c71c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel \
$(LOCAL_PATH)/fstab.hardware:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.$(PRODUCT_PLATFORM) \
$(LOCAL_PATH)/fstab.hardware:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.$(PRODUCT_PLATFORM) \
$(LOCAL_PATH)/fstab.persist:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.persist \
$(LOCAL_PATH)/init.hardware.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).rc \
$(LOCAL_PATH)/init.power.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).power.rc \
$(LOCAL_PATH)/init.radio.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.radio.sh \
Expand Down
1 change: 1 addition & 0 deletions fstab.hardware
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ system_ext /system_ext e
vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb=vbmeta,logical,first_stage_mount
product /product ext4 ro,barrier=1 wait,slotselect,avb,logical,first_stage_mount
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,sync wait,formattable,first_stage_mount,check,metadata_csum
/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
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier latemount,wait,check,quota,formattable,fileencryption=ice,reservedsize=128M,sysfs_path=/dev/sys/block/bootdevice,keydirectory=/metadata/vold/metadata_encryption,checkpoint=fs
/devices/platform/soc/a600000.ssusb/a600000.dwc3* auto vfat defaults voldmanaged=usb:auto
Expand Down
4 changes: 4 additions & 0 deletions fstab.persist
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions init.hardware.rc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ on early-init

# Disable EAS
write /proc/sys/kernel/sched_energy_aware 0
mount_all /vendor/etc/fstab.persist --early

# Disable VDSO on JAWS boards.
on early-init && property:ro.revision="DEV1.0"
Expand Down

0 comments on commit 490c71c

Please sign in to comment.