tree: b72d4f7b46faa094c3b438e7050963f2941bd8f9 [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. config/
  4. meta/
  5. src/
src/recovery/system/README.md

System Recovery

system_recovery is the primary executable in the recovery system. The recovery system is a second, standalone instance of Fuchsia that runs on devices to recover the primary Fuchsia system when the primary Fuchsia system is inoperative.

Building the recovery image

You can build the recovery image using the following command:

$ fx build recovery_image

This command builds recovery.zbi, which is a self-contained archive of the recovery system.

Running the recovery image

After building the recovery image, you can run the image in QEMU using the follosing command:

$ fx run-recovery -g

The easiest way to run recovery on hardware is to netboot a device into a newly built recovery image:

$ out/default.zircon/tools/bootserver --board_name pc --boot out/default/recovery.zbi

Testing

Build the core product with recovery:

$ fx set core.x64 --with //src/recovery
$ fx build

The system you've just built onto your device.

Unit

Run the recovery integration test:

$ fx run-test system_recovery_tests

Integration

Run the recovery integration test:

$ fx run-test recovery_integration_test

End-to-end

TODO: Need to create end-to-end tests.