device_google_zumapro/conf
Juan Yescas 60dc676409 Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode
There are 4 partitions that are flashed at the factory and use F2FS fs with
4kb block size:

- /dev/block/by-name/efs
- /dev/block/by-name/efs_backup
- /dev/block/by-name/modem_userdata
- /dev/block/by-name/persist

These partitions can NOT be mounted by 16kb kernels because F2FS
expects BLOCK_SIZE == PAGE_SIZE.

In order to access the files in these partitions by 16kb kernels,
the dump.f2fs tool is used.

This change will perform these steps at boot time ONLY for 16kb mode. For
every partition (efs/efs_backup/modem_userdata/persist):

1. Use dump.f2fs to copy the content of the partition
to /data/vendor/copied/<partition name>.img.
2. If the copy was succesfull, rename /data/vendor/copied/<partition name>.img
to /data/vendor/copied/<partition name>
3. fsync the content of the directory /data/vendor/copied/<partition name>.

After the content of the partitions is in /data/vendor/copied,
bind-mount the partitions to the directory /mnt/vendor. See conf/fstab.efs.from_data.

Note: This change ONLY applies to 16kb kernels. This change does not modify
the original partitions.

Bug: 347015136
Bug: 362368691
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: Idf46a2a3a4f0b2e91ee4a0322a0c469e055684c8
2024-10-07 22:46:49 +00:00
..
ext4 Copy fstab from zuma to zumapro for 16kB developer options 2024-10-03 20:05:56 +00:00
f2fs Copy fstab from zuma to zumapro for 16kB developer options 2024-10-03 20:05:56 +00:00
fs-16kb 16kb: Config fstab for targets that only boot 16kb kernels 2024-09-11 23:55:31 +00:00
Android.bp Move the system read only partitions to fstab.ro.system 2024-08-05 14:27:20 -07:00
egl.cfg init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
fstab.efs.from_data Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode 2024-10-07 22:46:49 +00:00
fstab.ro.modem Rename fstab.modem to fstab.ro.modem for zumapro devices 2024-08-05 23:57:59 +00:00
fstab.ro.postinstall Rename fstab.postinstall to fstab.ro.postinstall for zumapro devices 2024-08-06 23:41:48 +00:00
fstab.ro.system Move the system read only partitions to fstab.ro.system 2024-08-05 14:27:20 -07:00
fstab.rw.efs 16kb: Move efs rw partitions to its own fstab file 2024-08-01 08:55:04 -07:00
fstab.rw.persist Rename fstab.persist to fstab.rw.persist for zumaproe devices 2024-08-27 01:28:17 +00:00
fstab.zumapro.common Move the system read only partitions to fstab.ro.system 2024-08-05 14:27:20 -07:00
init.debug.rc init.zumapro.rc: change permission of SJTAG writable files 2024-10-01 13:24:46 +00:00
init.efs.4k.rc Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode 2024-10-07 22:46:49 +00:00
init.efs.16k.rc Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode 2024-10-07 22:46:49 +00:00
init.exynos.nanohub.rc init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
init.factory.rc Modify path to add adbd in nnapi 2024-05-31 06:19:57 +00:00
init.freq.userdebug.rc init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
init.persist.rc Move setup of the persist partition to init.persist.rc 2024-10-04 08:19:22 -07:00
init.recovery.device.rc init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
init.zuma.soc.rc Refactor init.rc for zuma/zumapro 2023-12-12 19:09:50 -08:00
init.zumapro.board.rc Move setup of the persist partition to init.persist.rc 2024-10-04 08:19:22 -07:00
init.zumapro.soc.rc Merge "[ZumaPro] Change default MTE mode to Asymm." into main 2024-09-18 17:53:30 +00:00
init.zumapro.usb.rc usb: modify initial_descriptor_timeout to 500ms 2024-09-13 09:55:25 +00:00
OWNERS Add FSTAB_OWNERS and update OWNERS to include Android.bp 2024-08-09 16:22:59 +08:00
recovery.wipe init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
soundtrigger_conf.h init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
ueventd.zumapro.rc [NFC] Add permission for the st33spi 2024-08-01 06:00:28 +00:00