rpi: use twrp.usb.flags if mmcblk and nvme are not present
Change-Id: Ife677f459047738e3e21b29df3364c5b51a6518f
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user