The mkinstaller
script produces a bootable disk image from a build which can be used to install Fuchsia to a target machine. It supports creating installation images for x64 EFI-based devices (the x64 product configuration), and coreboot-based devices (the chromebook-x64 configuration), depending on what has been built.
Mkinstaller can write an image directly to a USB disk, or it can produce a new image file on the host machine, which can then be written to install media using dd
or similar. The mkinstaller script determines the images to be written to disk based on ${FUCHSIA_BUILD_DIR}/images.json
, and then writes each partition to disk, labelled according to the “name” field of the entry in images.json.
After you complete a build, you can create an installer image with fx mkinstaller /path/to/usb
.
Note: To see a full list of options, run fx mkinstaller -h
.
Follow the steps below to install Fuchsia:
You should see a blue boot screen.
These are the ways you can install Fuchsia:
installer
to launch the installer.You will see a list of disks, along with their sizes.
Note: What you type in won't be displayed until you press ENTER.
Confirm that you want to continue. The installer will wipe your disk, set up the Fuchsia partition tables, and install Fuchsia to your disk. The installer will show its progress as it installs, and exit once the installation is complete.
Unplug the installation USB drive.
Reboot your machine.
lsblk
to determine the main disk of the target machine.In this case, /dev/sys/pci/00:17.0/ahci/sata2/block
is the main disk of the target machine.
install-disk-image
to wipe and initialize the partition tables on the target machine. Replace /dev/sys/pci/00:17.0/ahci/sata2/block
with the path you determined using the lsblk
command.lsblk
to confirm the state of the disks:002
with the ID of the partition that‘s labelled efi
, and 052
with the ID of the partition that’s labelled efi-system
.003
with the ID of the partition on the USB drive labelled zircon-a
.Note: A limitation in the block device protocol means we need to dd
to an intermediary file before using install-disk-image
.
004
with the ID of the partition on the USB drive labelled zircon-r
.005
with the ID of the partition on the USB drive labelled storage-sparse
.Note: this image is much bigger than any of the others - this step may take a while!
Unplug the installation USB drive.
Reboot your machine.