sm6150-common: Switch to EROFS for relevant partitions
- EROFS offers much more compressed partition sizes compared to the likes of ext4 albeit being read-only.
- We have switched to EROFS for /system, /system_ext, /product, /odm and /vendor.
- This patch was inspired by [1].
[1]: 2b52a00408
Change-Id: I438f6b88ede93fe7e5d581439ba630b5c5440a48
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
This commit is contained in:
parent
03bc03875e
commit
5f8ce774dd
@ -109,11 +109,11 @@ BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions
|
|||||||
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor
|
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor
|
||||||
|
|
||||||
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||||
BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
|
BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := erofs
|
||||||
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
|
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := erofs
|
||||||
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
|
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := erofs
|
||||||
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
|
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := erofs
|
||||||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := erofs
|
||||||
|
|
||||||
BOARD_USES_METADATA_PARTITION := true
|
BOARD_USES_METADATA_PARTITION := true
|
||||||
|
|
||||||
|
@ -34,10 +34,15 @@
|
|||||||
|
|
||||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||||
system /system ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
|
system /system ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
|
||||||
|
system /system erofs ro wait,avb,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
|
||||||
system_ext /system_ext ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
system_ext /system_ext ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
||||||
|
system_ext /system_ext erofs ro wait,avb,logical,first_stage_mount
|
||||||
product /product ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
product /product ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
||||||
|
product /product erofs ro wait,avb,logical,first_stage_mount
|
||||||
vendor /vendor ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
vendor /vendor ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
||||||
|
vendor /vendor erofs ro wait,avb,logical,first_stage_mount
|
||||||
odm /odm ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
odm /odm ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
||||||
|
odm /odm erofs ro wait,avb,logical,first_stage_mount
|
||||||
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,noatime,nodev,barrier=1 wait
|
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,noatime,nodev,barrier=1 wait
|
||||||
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,check,formattable,first_stage_mount
|
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,check,formattable,first_stage_mount
|
||||||
|
|
||||||
|
@ -34,10 +34,15 @@
|
|||||||
|
|
||||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||||
system /system ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
|
system /system ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
|
||||||
|
system /system erofs ro wait,avb,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
|
||||||
system_ext /system_ext ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
system_ext /system_ext ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
||||||
|
system_ext /system_ext erofs ro wait,avb,logical,first_stage_mount
|
||||||
product /product ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
product /product ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
||||||
|
product /product erofs ro wait,avb,logical,first_stage_mount
|
||||||
vendor /vendor ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
vendor /vendor ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
||||||
|
vendor /vendor erofs ro wait,avb,logical,first_stage_mount
|
||||||
odm /odm ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
odm /odm ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
||||||
|
odm /odm erofs ro wait,avb,logical,first_stage_mount
|
||||||
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,noatime,nodev,barrier=1 wait
|
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,noatime,nodev,barrier=1 wait
|
||||||
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,formattable,first_stage_mount
|
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,formattable,first_stage_mount
|
||||||
|
|
||||||
|
@ -30,9 +30,13 @@
|
|||||||
#device mount point fstype [device2] [length=]
|
#device mount point fstype [device2] [length=]
|
||||||
|
|
||||||
system /system ext4 ro,barrier=1,discard wait,avb=vbmeta_system,logical,first_stage_mount
|
system /system ext4 ro,barrier=1,discard wait,avb=vbmeta_system,logical,first_stage_mount
|
||||||
|
system /system erofs ro wait,avb=vbmeta_system,logical,first_stage_mount
|
||||||
system_ext /system_ext ext4 ro,barrier=1,discard wait,avb=vbmeta_system,logical,first_stage_mount
|
system_ext /system_ext ext4 ro,barrier=1,discard wait,avb=vbmeta_system,logical,first_stage_mount
|
||||||
|
system_ext /system_ext erofs ro wait,avb=vbmeta_system,logical,first_stage_mount
|
||||||
vendor /vendor ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
vendor /vendor ext4 ro,barrier=1,discard wait,avb,logical,first_stage_mount
|
||||||
|
vendor /vendor erofs ro wait,avb,logical,first_stage_mount
|
||||||
product /product ext4 ro,barrier=1,discard wait,avb=vbmeta_system,logical,first_stage_mount
|
product /product ext4 ro,barrier=1,discard wait,avb=vbmeta_system,logical,first_stage_mount
|
||||||
|
product /product erofs ro wait,avb=vbmeta_system,logical,first_stage_mount
|
||||||
/dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered wait,check
|
/dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered wait,check
|
||||||
/dev/block/bootdevice/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,check,formattable,first_stage_mount
|
/dev/block/bootdevice/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,check,formattable,first_stage_mount
|
||||||
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard wait,check,encryptable=footer
|
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard wait,check,encryptable=footer
|
||||||
|
Loading…
Reference in New Issue
Block a user