Skip to content

Commit

Permalink
op5_t: enable erofs for dynamic or standard partitions
Browse files Browse the repository at this point in the history
Change-Id: Ifa6a5fc0822e23b59e9dc9109fc1a4ebdede4cc9
Signed-off-by: Fernando Oliveira <[email protected]>
  • Loading branch information
faoliveira78 committed Aug 4, 2024
1 parent 225afa6 commit d2a5045
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recovery/root/fstab/twrp-nondyn.flags
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
/cache ext4 /dev/block/bootdevice/by-name/cache
/recovery emmc /dev/block/bootdevice/by-name/recovery flags=backup=1
/system ext4 /dev/block/bootdevice/by-name/system flags=backup=1;wipeingui
/system erofs /dev/block/bootdevice/by-name/system flags=backup=1;wipeingui;fsflags="ro,wait"
/system_image emmc /dev/block/bootdevice/by-name/system
/vendor ext4 /dev/block/bootdevice/by-name/vendor flags=backup=1;wipeingui
/vendor erofs /dev/block/bootdevice/by-name/vendor flags=backup=1;wipeingui;fsflags="ro,wait"
/vendor_image emmc /dev/block/bootdevice/by-name/vendor
/persist ext4 /dev/block/bootdevice/by-name/persist flags=display="Persist";backup=1;fsflags="noatime,nosuid,nodev,barrier=1"
/firmware vfat /dev/block/bootdevice/by-name/modem flags=display="Firmware";mounttodecrypt;fsflags="ro"
Expand Down
2 changes: 2 additions & 0 deletions recovery/root/fstab/twrp.flags.nondynpart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# mount point fstype device device2 flags

/system ext4 /dev/block/bootdevice/by-name/system flags=backup=1;wipeingui
/system erofs /dev/block/bootdevice/by-name/system flags=backup=1;wipeingui;fsflags="ro,wait"
/system_image emmc /dev/block/bootdevice/by-name/system
/vendor ext4 /dev/block/bootdevice/by-name/vendor flags=backup=1;wipeingui
/vendor erofs /dev/block/bootdevice/by-name/vendor flags=backup=1;wipeingui;fsflags="ro,wait"
/vendor_image emmc /dev/block/bootdevice/by-name/vendor
1 change: 1 addition & 0 deletions recovery/root/system/bin/merge-fstab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if dd if=/dev/block/by-name/system bs=256k count=1|strings|grep -qE 'cheesedump_
echo >> /system/etc/recovery.fstab
for p in system system_ext product vendor odm; do
echo "${p} /${p} ext4 ro,barrier=1,discard wait,logical" >> /system/etc/recovery.fstab
echo "${p} /${p} erofs ro wait,logical" >> /system/etc/recovery.fstab
done
echo >> /system/etc/twrp.flags
for p in vendor; do
Expand Down

0 comments on commit d2a5045

Please sign in to comment.