setup-mkosi
Version updated for systemd/mkosi to version v18.
- This publisher is shown as erified by GitHub.
- This action is used across all versions by 210 repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
$SCRIPTwas renamed to$CHROOT_SCRIPT.$SCRIPTcan still be used but is considered deprecated.- Added
RuntimeTrees=setting to mount directories when booting images viamkosi boot,mkosi shellormkosi qemu. The directories are mounted with a uid map that maps the user invoking mkosi to the root user so that all files in the directory appear as if owned by the root user in the container or virtual machine and any new files created in the directories are owned by the user invoking mkosi. To make this work in VMs, we useVirtioFSviavirtiofsd. Note that this requires systemd v254 or newer to be installed in the image. - Added support for booting directory images with
mkosi qemuviaVirtioFS. WhenCONFIG_VIRTIOFSandCONFIG_VIRTIO_PCIare builtin modules, no initramfs is required to make this work. - Added
Include=or--includeto include extra configuration files or directories. - Added support for specifiers to access the current value of certain settings during configuration file parsing.
mkosiwill now exit with an error when no configuration was provided.- Multiple scripts of the same type are now supported.
- Custom distributions are now supported via the new
customdistribution. When usingcustomas the distribution, the rootfs must be provided via base trees, skeleton trees or prepare scripts. - We now use local GPG keys for rpm based distributions if the
distribution-gpg-keyspackage is installed on the host. - Added
RuntimeSize=to grow the image to a specific size before booting it when usingmkosi bootormkosi qemu. - We now set
MKOSI_UIDandMKOSI_GIDwhen running scripts which are set to the uid and gid of the user invoking mkosi respectively. These can be used to run commands as the user that invoked mkosi. - Added an
Architecture=match - Initrds specified with
Initrds=are now used for grub menuentries as well. ImageId=andImageVersion=are now written to os-release asIMAGE_IDandIMAGE_VERSIONif provided.- We pass command line arguments passed to the
buildverb to the build script again. - We added support for the “RHEL Universal Base Image” distribution.