setup-mkosi
Version updated for systemd/mkosi to version v23.1.
- This action is used across all versions by 0 repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
v23.1
- Respin due to git tag mismatch
v23
- Added
CleanScripts=to allow running custom cleanup code whenever mkosi cleans up the output directory. This allows cleaning up extra outputs produced by e.g. a build script that mkosi doesn’t know about. - Added
ConfigureScripts=to allow dynamically modifying the mkosi configuration. Each configure script receives the current config as JSON on stdin and should output the new config as JSON on stdout. - When building a UKI, we don’t measure for the TPM SHA1 PCR bank anymore.
- All keys in the mkosi config JSON output are now in pascal case, except for credentials and environments, where the keys encode names of credentials and environment variables and are therefore case sensitive.
- Added various settings to allow running mkosi behind a proxy.
- Various fixes to kernel module filtering that should result in fewer
modules being pulled into the default initrd when
KernelModulesExclude=orKernelModulesInitrdExclude=are used. - Added
ToolsTreeDistribution=match. - Removed
vmspawnverb and replaced it withVirtualMachineMonitor=. - New specifiers for various directories were added.
%Dresolves to the directory that mkosi was invoked in,%Pto the current working directory, and%Cto the parent directory of the config file. - Added
ForwardJournal=to have systemd inside a container/VM forward its journal to the specified file or directory. - Systemd scopes are now allocated for qemu, swtpm, virtiofsd and systemd-journal-remote if available.
- The
mkosi qemuvirtual machine is now registered with systemd-machined if available. - Added new
ocioutput format - Runtime trees without a target are now mounted to
/root/srcinstead of a subdirectory of it (To have the same behaviour asBuildSources=). - Added
RuntimeBuildSources=to mount build and source directories when booting the image withmkosi nspawnormkosi qemu. - Introduced
--appendto allow command line settings to be parsed after parsing configuration files. distribution-releaseis not installed by default anymore on OpenSUSE.- Setting
QemuSmp=to0will now make qemu use all available CPUs - Free page reporting and discard request processing are now enabled by
default in VMs spawned by
mkosi qemu. - Added
ToolsTreeCertificates=to allow configuring whether to use certificates and keys from the tools tree (if one is used) or the host. - Added
neverforCacheOnly=to specify that repository metadata should always be refreshed. - Renamed the
noneoption forCacheOnly=toauto. - Added
ProxyExclude=to configure hostnames for which requests should not go through the configured proxy. - The default tools tree is now reused on incremental builds.
- Added
VolatilePackages=andInitrdVolatilePackages=to configure packages that should be installed after executing build scripts and which should not be cached when usingIncremental=. PackageDirectories=now has an associated default pathmkosi.packages.repreprois now used to generate local apt repositories.- Support for BSD tar/cpio was dropped.
- When both
ExtraSearchPaths=andToolsTree=are used, mkosi will now prefer running a binary found inExtraSearchPaths=without the tools tree over running the binary from the tools tree. If a binary is not found inExtraSearchPaths=, the tools tree is used instead. - An artifact directory is now made available when running scripts which
can be used to pass around data between different scripts. mkosi will
also look for microcode and initrds in the artifact directory under
the
io.mkosi.microcodeandio.mkosi.initrdsubdirectories. - Added
Environment=match setting to check for environment variables defined with theEnvironment=setting. - The
basesystempackage is now always installed in Fedora and CentOS images instead of thefilesystempackage. - The
qemu,shellandbootverbs do not automatically build the image anymore unless--forceis specified. SplitArtifacts=is now supported for the portable, sysext and confext outputs.- The
WithDocs=option was implemented for pacman-based distributions. - The default Fedora release was bumped to 40.
QemuSwtpm=can now be used withQemuFirmware=set tolinuxorbios.- Added
UnitProperties=to allow configure properties on the scopes generated bysystemd-nspawnandsystemd-run. - mkosi now only builds a single default tools tree per build using the settings from the last regular image that we’ll build.
- Configure scripts are now only executed for verbs which imply an image build and are executed with the tools tree instead of without it.
$QEMU_ARCHITECTUREis now set for configure scripts to easily allow scripts to figure out which qemu binary will be used to run qemu.- A file ID can now be specified for
QemuDrives=. This allows adding multiple qemu drives that are backed by the same file. - mkosi doesn’t fail anymore if images already exist when running
mkosi build. - Image names from
mkosi.images/are now preferred over the specified image ID when determining the output filename to use for an image. --includenow has a shorthand option-I.- The
WITH_NETWORKenvironment variable is now passed to build and finalize scripts. - We now clamp mtimes to the specified source date epoch timestamp instead of resetting all mtimes. This means that we won’t touch any mtimes that are already older than the given source date epoch timestamp.
- Removed support for CentOS 8 Stream as it is now EOL.
- The
coredumpctlandjournalctlverbs now operrate on the path specified inForwardJournal=if one is set. - Added
UnifiedKernelImageFormat=format setting to allow configuring the naming of unified kernel images generated by mkosi. - The
versionlockplugin is now enabled by default for dnf with a noop configuration. Repositories=is now implemented for zypper.KernelModulesInclude=andKernelModulesInitrdInclude=now take the special valueshostanddefaultto include the host’s loaded modules and the default kernel modules defined inmkosi-initrdrespectively.KernelModulesIncludeHost=andKernelModulesInitrdIncludeHost=are now deprecated.- Added
mkosi dependenciesto output the list of packages required by mkosi to build and boot images.