system_recovery_installer is an executable for the fuchsia workstation installer from the recovery system.
You can build the recovery workstation isntaller image using the following command:
$ fx build build/images/recovery
This command builds an additional
recovery-installer.zbi files in
A method of running the workstation installer on hardware is to netboot a device into a newly built recovery image:
$ out/default/host-tools/bootserver --board-name device-name --boot out/default/obj/build/images/recovery/recovery-installer/recovery-installer.zbi
device-name can be found with
NB If you only have one device or have used the
fx set-device command you can omit the
Build the core product with recovery:
$ fx set core.x64 --with //src/recovery $ fx build
Load the system you've just built onto your device.
The installer has a separate set of unit tests which can be run with:
$ fx test -s 5 system_recovery_installer_tests
Note that test_ui requires display access, so using a product other than “core” will likely cause these tests to fail.
TODO: Need to create integration tests.
TODO: Need to create end-to-end tests.