super partition: mount super partitions using fs_mgr
We are now requiring fstab v2 for android-10+ trees. You can
specify twrp flags using /etc/twrp.flags to label and
annotate partitions.
This patchset uses fs_mgr to load the super partition and build
device mapper blocks off vendor and system depending on the slot
in use. These are mapped to partitions in TWRP and allowed to
be mounted read-only. The super partition is also mapped into a
TWRP partition in order to backup the entire partition. You cannot
backup individual device mapper blocks due to the device can only
be read-only. Therefore you cannot write back to the device mapper.
Change-Id: Icc1d895dcf96ad5ba03989c9bf759419d83673a3
diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml
index 64b8776..b3b4312 100755
--- a/gui/theme/common/portrait.xml
+++ b/gui/theme/common/portrait.xml
@@ -2641,7 +2641,10 @@
</partitionlist>
<button style="checkbox">
- <condition var1="tw_mount_system_ro" op="=" var2="0"/>
+ <conditions>
+ <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
+ <condition var1="tw_is_super" op="=" var2="0"/>
+ </conditions>
<placement x="%indent%" y="%row15a_y%" textplacement="6"/>
<text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
<image resource="checkbox_false"/>
@@ -2649,7 +2652,10 @@
</button>
<button style="checkbox">
- <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
+ <conditions>
+ <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
+ <condition var1="tw_is_super" op="=" var2="0"/>
+ </conditions>
<placement x="%indent%" y="%row15a_y%" textplacement="6"/>
<text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
<image resource="checkbox_true"/>