You can use a USB flash drive to make your target device to boot from the Fuchsia installer, which then installs a freshly built Fuchsia image on the device directly from the USB.
To prepare a USB flash drive to be a bootable disk, do the following:
-
Set the build configuration to
workstation_eng.x64
and include the recovery package (recovery-installer
):fx set workstation_eng.x64 --with //build/images/recovery:recovery-installer
-
Build a new Fuchsia image and its artifacts:
fx build
-
Plug a USB flash drive into your workstation.
-
Identify the path to the USB drive:
fx list-usb-disks
This command prints output similar to the following:
$ fx list-usb-disks /dev/sda - My Example USB Disk
-
Create a bootable USB drive:
fx mkinstaller -v --new-installer {{ "<var>" }}PATH_TO_USB_DRIVE{{ "</var>"}}
Replace
PATH_TO_USB_DRIVE
with the path to the USB drive from the step above.The example command below selects the
/dev/sda
path:$ fx mkinstaller -v --new-installer /dev/sda
When finished, the command prints output similar to the following in the end:
$ fx mkinstaller -v --new-installer /dev/sda mkinstaller: WARNING: Changing ownership of /dev/sda to alice [sudo] password for alice: ... mkinstaller: INFO: Writing image fvm.sparse.blk to partition storage-sparse... mkinstaller: INFO: Wrote 835.6M in 35.55s, 23.5M/s mkinstaller: INFO: Done. mkinstaller: INFO: Ejected USB disk
-
Unplug the USB drive from the workstation.
-
Plug the bootable USB drive into your target device.
-
Configure the target device's BIOS to boot from a USB drive.
-
Reboot the target device.
The device boots into the Fuchsia Workstation Installer.
-
Press Enter on prompts to continue the installation process.
When the installation is finished, the screen displays
Success! Please restart your computer.
-
Unplug the USB drive from the target device.
-
Reboot the target device.
The target device is now booted into Fuchsia’s Workstation.