rpi: use twrp.usb.flags if mmcblk and nvme are not present

Change-Id: Ife677f459047738e3e21b29df3364c5b51a6518f
This commit is contained in:
Konsta
2023-10-28 17:23:14 +03:00
parent 31f02fc930
commit 049c954f6b
+1 -1
View File
@@ -165,7 +165,7 @@ int TWPartitionManager::Process_Fstab(string Fstab_Filename, bool Display_Error,
std::map<string, Flags_Map> twrp_flags;
strcpy(fstab_filename, "/etc/twrp.flags");
if (!TWFunc::Path_Exists("/dev/block/mmcblk0")) {
if (!TWFunc::Path_Exists("/dev/block/mmcblk0") && !TWFunc::Path_Exists("/dev/block/nvme0n1")) {
strcpy(fstab_filename, "/etc/twrp.usb.flags");
}
fstabFile = fopen(fstab_filename, "rt");