Article Summary:
Mkosi is a lightweight tool to build highly-customized disk images for various distributions using distribution packages as the base. We recently added support for using RHEL UBI and full RHEL as the source of packages. For RHEL, it is necessary to get an entitlement, so we’ll show how this can be done easily using the developer subscription. With mkosi it is very easy to build an image that can function as a container or a VM or be installed on real hardware, and this can be used for testing software against RHEL or to build and deploy RHEL-based images.
Article Description:
General plan:
- introduction to mkosi
- basic ideas behind mkosi and how it differs from other builders (kiwi, osbuild): declarative config, use repart files to define partitioning, use native package management for each distro, systemd tools to configure the image, unprivileged operation
- injecting own content into an image
- building images with RHEL UBI
- booting the resulting image as a container and a VM
- getting a RHEL developer license
- building images with RHEL
- summary