From d2a50456865b09ea0acb55aa71ec5868ec317d82 Mon Sep 17 00:00:00 2001 From: Fernando Oliveira Date: Thu, 1 Aug 2024 14:54:18 -0300 Subject: [PATCH] op5_t: enable erofs for dynamic or standard partitions Change-Id: Ifa6a5fc0822e23b59e9dc9109fc1a4ebdede4cc9 Signed-off-by: Fernando Oliveira --- recovery/root/fstab/twrp-nondyn.flags | 2 ++ recovery/root/fstab/twrp.flags.nondynpart | 2 ++ recovery/root/system/bin/merge-fstab.sh | 1 + 3 files changed, 5 insertions(+) diff --git a/recovery/root/fstab/twrp-nondyn.flags b/recovery/root/fstab/twrp-nondyn.flags index dc952d3..d9f04a3 100644 --- a/recovery/root/fstab/twrp-nondyn.flags +++ b/recovery/root/fstab/twrp-nondyn.flags @@ -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" diff --git a/recovery/root/fstab/twrp.flags.nondynpart b/recovery/root/fstab/twrp.flags.nondynpart index 61b9213..3040ed9 100644 --- a/recovery/root/fstab/twrp.flags.nondynpart +++ b/recovery/root/fstab/twrp.flags.nondynpart @@ -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 diff --git a/recovery/root/system/bin/merge-fstab.sh b/recovery/root/system/bin/merge-fstab.sh index ee520eb..558c436 100644 --- a/recovery/root/system/bin/merge-fstab.sh +++ b/recovery/root/system/bin/merge-fstab.sh @@ -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