twrp: Refactor fstab
New twrp will not work with legacy fstab format. Also switch to by-name paths and remove the fstab symlinks. Change-Id: I403497698f1b6b7cd232081cdb083c82079551a2
This commit is contained in:
1 parent
659344ee46
commit
024cf63e22
8 files changed
+19
-90
No files matched your search
@@ -169,15 +169,6 @@ void vendor_load_properties()
|
||||
tav = { "11", "RQ1A.210105.003", "7094503_2914.3416" };
|
||||
} else if (ti.is_model("icosa") || ti.is_model("icosa_emmc")) {
|
||||
parts.erase(std::remove(parts.begin(), parts.end(), "USP"), parts.end());
|
||||
|
||||
if (ti.recovery_context()) {
|
||||
std::map<std::string,std::string> icosa_twrp_fstab;
|
||||
if (ti.is_model("icosa_emmc"))
|
||||
icosa_twrp_fstab.emplace("/etc/twrp.fstab.icosa_emmc", "/etc/twrp.fstab");
|
||||
else
|
||||
icosa_twrp_fstab.emplace("/etc/twrp.fstab.icosa_sd", "/etc/twrp.fstab");
|
||||
ti.make_symlinks(icosa_twrp_fstab);
|
||||
}
|
||||
} else if (ti.is_model("dragon")) {
|
||||
tav = { "8.1.0", "OPM8.190605.005", "5749003" };
|
||||
ti.property_set("ro.product.name", "ryu");
|
||||
@@ -197,12 +188,6 @@ void vendor_load_properties()
|
||||
} else if (ti.vendor_context()) {
|
||||
ti.property_set("ro.vendor.lineage.tegra.name", "ryu");
|
||||
}
|
||||
} else if (ti.is_model("loki_e_base") || ti.is_model("loki_e_lte") || ti.is_model("loki_e_wifi")) {
|
||||
if (ti.recovery_context()) {
|
||||
std::map<std::string,std::string> loki_twrp_fstab;
|
||||
loki_twrp_fstab.emplace("/etc/twrp.fstab.icosa_emmc", "/etc/twrp.fstab");
|
||||
ti.make_symlinks(loki_twrp_fstab);
|
||||
}
|
||||
}
|
||||
|
||||
ti.set_properties();
|
||||
|
||||
Reference in new issue
Block a user