[srv.init] Iterate and load drivers and services from initrd

Previously we were hard-coding loading specific files (the UART driver
and logging server) from the initrd. Now j6romfs has a for_each() method
to allow iterating all files in a directory, and init loads all programs
from /jsix/drivers and /jsix/services. Eventually this will need more
dynamic loading decisions for drivers but for now it's fine.
This commit is contained in:
Justin C. Miller
2023-02-07 01:05:38 -08:00
parent 6a6b75b418
commit 118ee73ff1
4 changed files with 105 additions and 58 deletions

View File

@@ -141,7 +141,6 @@ load_program(
return false;
}
delete [] reinterpret_cast<const uint8_t*>(data.pointer);
return true;
}