feat: MontaukOS installer app, toml config, app directory with manifests, and more

This commit is contained in:
daniel committed 2026-03-08 12:06:29 +01:00
1 parent b540a43f39
commit 7617419640
60 files changed
+3045 -268

No files matched your search

+10
View File
@@ -483,6 +483,16 @@ namespace Drivers::Storage::Gpt {
if (!dev) return -1;
if (dev->SectorCount < 68) return -1; // minimum for GPT
// Remove stale in-memory partitions for this device
int dst = 0;
for (int src = 0; src < g_partitionCount; src++) {
if (g_partitions[src].BlockDevIndex != blockDevIndex) {
if (dst != src) g_partitions[dst] = g_partitions[src];
dst++;
}
}
g_partitionCount = dst;
// Write protective MBR
ProtectiveMbr mbr;
memset(&mbr, 0, sizeof(mbr));