if symlink.exists():
return symlink.resolve()
- if state.config.distribution == Distribution.none:
- die(f"Building a default initrd is not supported with distribution {state.config.distribution}")
+ if state.config.distribution == Distribution.custom:
+ die("Building a default initrd is not supported for custom distributions")
# Default values are assigned via the parser so we go via the argument parser to construct
# the config for the initrd.
@classmethod
def install_packages(cls, state: MkosiState, packages: Sequence[str]) -> None:
if packages:
- die("Installing packages is not supported with distribution 'none'")
+ die("Installing packages is not supported for custom distributions'")
@classmethod
def remove_packages(cls, state: MkosiState, packages: Sequence[str]) -> None:
if packages:
- die("Removing packages is not supported with distribution 'none'")
+ die("Removing packages is not supported for custom distributions")
: The distribution to install in the image. Takes one of the following
arguments: `fedora`, `debian`, `ubuntu`, `arch`, `opensuse`, `mageia`,
- `centos`, `rhel-ubi`, `openmandriva`, `rocky`, `alma`, `none`.
- If not specified, defaults to the distribution of the host.
+ `centos`, `rhel-ubi`, `openmandriva`, `rocky`, `alma`, `custom`.
+ If not specified, defaults to the distribution of the host or `custom`
+ if the distribution of the host is not a supported distribution.
`Release=`, `--release=`, `-r`
Any distribution that packages `dnf` may be used to build images for any of the rpm-based distributions.
Any distro that packages `pacman` may be used to build *Arch Linux* images.
Any distribution that packages `zypper` may be used to build *openSUSE* images.
-Other distributions and build automation tools for embedded Linux systems such as Buildroot, OpenEmbedded and Yocto Project may be used by selecting the `none` distribution, and populating the rootfs via a combination of base trees, skeleton trees, and prepare scripts.
+Other distributions and build automation tools for embedded Linux
+systems such as Buildroot, OpenEmbedded and Yocto Project may be used by
+selecting the `custom` distribution, and populating the rootfs via a
+combination of base trees, skeleton trees, and prepare scripts.
Currently, *Fedora Linux* packages all relevant tools as of Fedora 28.