Building an image from a custom manifest¶
Both AutoSD and its downstream RHIVOS are sets of RPM binaries. You customize and build your own image, including your own applications as RPMs or container images.
Automotive Image Builder builds those images on CentOS Stream, Fedora, or RHEL hosts, with the option to build immutable images using OSTree.
Use the automotive-image-builder tool to build an image from a custom Automotive Image Builder manifest file. Alternatively, use one of the available example Automotive Image Builder manifests to build an image:
-
The sig-docs/demos which includes all the manifests present in this documentation site. The images are built and tested nightly and upon changes to Automotive Image Builder itself.
-
The sample-images repos which includes a collection of manifests. Note that those images are not regularly tested and while most of them are included in
sig-docs/demosthere may still be a few additional interesting manifests examples.
Note
AutoSD does not support cross-compilation. To build AArch64 or x86_64 images, you must build on the respective systems. Some options for AArch64 hosting include Raspberry Pi 4 or QEMU on Linux or macOS. For more information, see Getting started on Linux or macOS.
Prerequisites
-
Podman is installed.
-
The
automotive-image-buildertool is installed. -
An Automotive Image Builder manifest file, such as the manifest file that you created in Embedding RPM packages from local storage into the AutoSD image and extended in the other sections in this guide
Procedure
-
Build a disk image from your manifest:
The example command demonstrates how to build a qcow2 image for a virtual environment using the most basic options. Additional options are available. You can also build images for specific hardware types.
Tip
For production deployments, use
aib buildto produce a bootc container image instead. Bootc images support over-the-air updates and registry-based distribution. For details, see Building bootc images. -
Run the image:
-
After the image boots, log in as
rootusing the passwordpassword. -
Verify that your packaged software is present in your image:
Your image is now ready.
Next steps
- Now that you have built your AutoSD image, you can flash it onto an SD card. For more information, see Provisioning hardware.
Additional resources
- Sample Automotive Image Builder manifest
- Bootc image building – concept overview of the bootc build workflow
- Building bootc images – step-by-step bootc build procedure
- Registry-based distribution – pushing images and enabling over-the-air updates