Проверка только по первому разделу (PARAVIS): раздел DATA не требуется
This commit is contained in:
1 parent
1dddc2f0a3
commit
1e86211869
1 file changed
+1
-5
@@ -471,10 +471,6 @@ public class MainActivity extends Activity {
|
|||||||
message = "Раздел PARAVIS не найден. Если запись уже выполнялась — переподключите флешку.";
|
message = "Раздел PARAVIS не найден. Если запись уже выполнялась — переподключите флешку.";
|
||||||
} else if (!new File(paravis, "efi/Paravis/Boot/NOT.DEL").exists()) {
|
} else if (!new File(paravis, "efi/Paravis/Boot/NOT.DEL").exists()) {
|
||||||
message = "На разделе PARAVIS нет efi/Paravis/Boot/NOT.DEL.";
|
message = "На разделе PARAVIS нет efi/Paravis/Boot/NOT.DEL.";
|
||||||
} else if (data == null) {
|
|
||||||
message = "Раздел DATA не найден.";
|
|
||||||
} else if (!new File(data, "ISO/Ventoy/NOT.DEL").exists()) {
|
|
||||||
message = "На разделе DATA нет ISO/Ventoy/NOT.DEL.";
|
|
||||||
} else {
|
} else {
|
||||||
markers = true;
|
markers = true;
|
||||||
File boot = new File(paravis, "efi/Paravis/Boot");
|
File boot = new File(paravis, "efi/Paravis/Boot");
|
||||||
@@ -499,7 +495,7 @@ public class MainActivity extends Activity {
|
|||||||
if (!uGrubA) missing.append(" UEFI Grub2");
|
if (!uGrubA) missing.append(" UEFI Grub2");
|
||||||
if (!uXorA) missing.append(" UEFI XorBoot");
|
if (!uXorA) missing.append(" UEFI XorBoot");
|
||||||
|
|
||||||
message = "Флешка Paravis проверена.";
|
message = "Раздел PARAVIS проверен.";
|
||||||
if (missing.length() > 0) {
|
if (missing.length() > 0) {
|
||||||
message += "\nНет файлов:" + missing;
|
message += "\nНет файлов:" + missing;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user