+++ /dev/null
-[Match]
-Distribution=gentoo
-
-[Content]
-Environment=PORTAGE_BINHOST=https://raw.githubusercontent.com/257/binpkgs/master
-# needed for system-9999
-PackageManagerTrees=mkosi.pkgmngr/gentoo
-Packages=sys-kernel/gentoo-kernel-bin[initramfs]
- =sys-apps/systemd-9999[boot]
- # Failed to execute /usr/lib/systemd/system-environment-generators/10-gentoo-path: No such file or directory
- # Failed to execute /usr/lib/systemd/system-generators/gentoo-local-generator: No such file or directory
- sys-apps/gentoo-systemd-integration
- app-shells/bash
- # mkosi-check-and-shutdown.sh[46]: /usr/lib/systemd/mkosi-check-and-shutdown.sh: line 5: tee: command not found
- sys-apps/coreutils
- fedora
- rocky
- alma
- - gentoo
- opensuse
format:
- directory
- Removed `--tar-strip-selinux-context=` option. We now label all files
properly if selinux is enabled and if users don't want the labels,
they can simply exclude them when extracting the archive.
+- Gentoo is now marked as experimental and unsupported and there's no
+ guarantee at all that it will work. Issues related to gentoo will
+ generally not receive attention from core maintainers. All gentoo
+ specific hacks outside of the gentoo implementation module have been
+ removed.
## v14
: The distribution to install in the image. Takes one of the following
arguments: `fedora`, `debian`, `ubuntu`, `arch`, `opensuse`, `mageia`,
- `centos`, `openmandriva`, `rocky`, `alma` or `gentoo`. If not
+ `centos`, `openmandriva`, `rocky`, `alma`. If not
specified, defaults to the distribution of the host.
`Release=`, `--release=`, `-r`
* *Alma Linux*
-* *Gentoo*
+* *Gentoo* (**Gentoo is experimental and unsupported. We make no
+ guarantee that it will work at all and the core maintainers will
+ generally not fix gentoo specific issues**)
In theory, any distribution may be used on the host for building images
containing any other distribution, as long as the necessary tools are
"--package", "util-linux",
"--package", "kmod",
*(["--package", "dmsetup"] if state.config.distribution.is_apt_distribution() else []),
- *(["--package", "udev"] if not state.config.distribution.is_portage_distribution() else []),
- *(["--package", "bash"] if state.config.distribution.is_portage_distribution() else []),
"--output", f"{state.config.output}-initrd",
*(["--image-version", state.config.image_version] if state.config.image_version else []),
"--make-initrd", "yes",
def is_apt_distribution(self) -> bool:
return self in (Distribution.debian, Distribution.ubuntu)
- def is_portage_distribution(self) -> bool:
- return self in (Distribution.gentoo,)
-
def setup(self, state: "MkosiState") -> None:
return self.installer().setup(state)
FIRMWARE_LOCATIONS = [
"/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd",
- "/usr/share/edk2-ovmf/OVMF_CODE.secboot.fd", # GENTOO:
+ "/usr/share/edk2-ovmf/OVMF_CODE.secboot.fd",
"/usr/share/qemu/OVMF_CODE.secboot.fd",
"/usr/share/ovmf/OVMF.secboot.fd",
"/usr/share/OVMF/OVMF_CODE.secboot.fd",
FIRMWARE_LOCATIONS = [
"/usr/share/edk2/ovmf/OVMF_CODE.fd",
- "/usr/share/edk2-ovmf/OVMF_CODE.fd", # GENTOO:
+ "/usr/share/edk2-ovmf/OVMF_CODE.fd",
"/usr/share/qemu/OVMF_CODE.fd",
"/usr/share/ovmf/OVMF.fd",
"/usr/share/OVMF/OVMF_CODE.fd",
OVMF_VARS_LOCATIONS += ["/usr/share/AAVMF/AAVMF_VARS.fd"]
OVMF_VARS_LOCATIONS += ["/usr/share/edk2/ovmf/OVMF_VARS.fd",
- "/usr/share/edk2-ovmf/OVMF_VARS.fd", # GENTOO:
+ "/usr/share/edk2-ovmf/OVMF_VARS.fd",
"/usr/share/qemu/OVMF_VARS.fd",
"/usr/share/ovmf/OVMF_VARS.fd",
"/usr/share/OVMF/OVMF_VARS.fd"]