The user writes a LibreToy image to the device with any tool of the user's
choice.
What follows depends on the variant:
image-full — the default for end users: libretoy-live starts on the
first boot; from there the stick can be grown to the size available.
Advanced users may choose image-minimal instead: there is no
libretoy-live on the stick, so the changes happen on the host while
flashing. They pick it when they want full control, need their own
adjustments, or distribute a preconfigured image to many sticks without
starting libretoy-live on each.
Installation documents the
steps; the recommended way is libretoy-flash, which flashes and applies
the configuration in one call.
The user picks the libretoy-live bootloader entry; kernel and initrd start.
The initrd moves the GPT backup header to the end of the stick — the same
repair that sgdisk -e does from the host for image-minimal. It is
unconditional: it fixes a defect and decides nothing.
The initrd opens a shell that offers three options:
repartition the stick according to the JSON configuration on the stick,
download an image from the catalog by URL and hash, or
evaluate the current upstream flake and set up a NixOS system.