Skip to content
Search Fedora

    Browse this documentation

    Fedora IoT and edge devices

    It is still Fedora, but on a Raspberry Pi or an edge gateway the questions change: how do you flash the image, how does an unattended device update, and how do you roll back when an upgrade fails. This page covers the Fedora IoT line and how it divides work with the desktop and container scenarios.

    Fedora IoT’s official positioning is “a foundation for the IoT and Device Edge ecosystem”. The keyword is foundation: it gives you a base on which containers and applications are stacked, not an out-of-the-box industry solution.

    Putting it next to the other two immutable lines makes it clearer: the desktop-side Atomic Desktops and the container-side Fedora CoreOS also follow the immutable route. The three target different scenarios; when choosing, look at the device shape and the update method first, not at the names.

    One-line selection: to flash a headless device that may live outside the machine room, look at IoT; to try an immutable desktop on a laptop, look at Atomic Desktops; to run a container cluster, take another line.

    The official docs list three installation paths: an Anaconda installation ISO, a prebuilt disk image, and a simplified provisioning ISO (zero-touch installation). Which one you pick depends on the hardware you have.

    • Fedora-IoT-ostree-XX.XX.iso (Anaconda installation ISO): the traditional installer, with a graphical flow to configure the filesystem, users and passwords; suited to x86_64 machines or virtual machines;
    • Fedora-IoT-raw-XX.XX.raw.xz (prebuilt disk image): flashed straight to storage; the official docs name single-board computers such as the Raspberry Pi 4;
    • Fedora-IoT-provisioner-XX.iso (simplified provisioning ISO): zero-touch installation, configured through FIDO Device Onboarding or Ignition as documented officially.

    There is an easy boundary to mix up here: within the Fedora family, the official Ignition docs and mechanism belong to Fedora CoreOS; do not treat CoreOS’s Ignition documentation as the init mechanism for IoT or Fedora in general. The IoT zero-touch docs give two configuration paths, FIDO Device Onboarding or Ignition — cite each according to its own documentation.

    Flashing itself is not complicated, but two actions are worth fixing in place: check the image version and checksum first (see Fedora downloads and media), then confirm the target device. Raw images especially: they do not install into an existing system, they overwrite the whole disk.

    Fedora Atomic has dedicated docs for updates, upgrades and rollbacks; IoT belongs to the same rpm-ostree family (the Anaconda installation image even carries ostree in its name), and the update model is the same: the system switches as a whole “deployment” rather than changing packages one by one.

    For edge devices the benefit is direct: an upgrade is a reversible whole-machine switch. You do not compare package versions on the device one by one, and you worry less about a power cut mid-upgrade leaving a half-new, half-old system — when something goes wrong, switch back to the previous deployment. See the official docs for the exact steps:

    Fits:

    • Remote devices without local operators — whole-machine switching plus rollback is more realistic than repairing a system on site;
    • Gateways and edge nodes where containers are the main delivery form;
    • Fleets that need reproducible, batch flashing: the same image can be flashed repeatedly.

    Does not fit:

    • Machines that need frequent system-package changes or kernel and driver experiments — changes to the immutable layer cost more;
    • Scenarios depending on traditional partition layouts and custom filesystems;
    • “Install once and leave it for years”: IoT images follow the Fedora release line too (the XX.XX in the filename is the release), so the device side needs its own upgrade and replacement plan.

    Image side:

    Terminal window
    ls -l Fedora-IoT-raw-*.raw.xz
    xz -l Fedora-IoT-raw-*.raw.xz
    sha256sum Fedora-IoT-raw-*.raw.xz

    xz -l reports the uncompressed size — a raw image overwrites the whole disk, so the uncompressed size must fit the target medium. Work that out before flashing, not after.

    Device side:

    Terminal window
    lsblk -o NAME,SIZE,MODEL,SERIAL,TRAN
    ls /dev/disk/by-id/

    Flash using the by-id path, never something like /dev/sdb whose name changes with plug order:

    Terminal window
    sudo xz -dc Fedora-IoT-raw-XX.XX.raw.xz | sudo dd of=/dev/disk/by-id/<device> bs=4M status=progress oflag=direct
    sync

    Confirming it is an immutable system once it boots

    Section titled “Confirming it is an immutable system once it boots”

    IoT belongs to the same rpm-ostree family as Atomic, and the test is the same — look at the marker file, not at whether the command exists:

    Terminal window
    ls -l /run/ostree-booted
    rpm-ostree status

    Measured on ordinary (package-managed) Fedora, rpm-ostree status refuses outright:

    error: This system was not booted via libostree.
    Currently, most rpm-ostree commands only work on ostree-based host systems.

    So “rpm-ostree runs on the device” proves nothing; the existence of /run/ostree-booted does.