From a50f945623620f79e16fd2f92b44c0626cf57cfa Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Aug 23 2023 12:35:01 +0000 Subject: Update the list of Requirements and Recommends Based on https://github.com/systemd/mkosi/issues/1821#issuecomment-1689826500. --- diff --git a/mkosi.spec b/mkosi.spec index b2f6205..75863fd 100644 --- a/mkosi.spec +++ b/mkosi.spec @@ -12,7 +12,6 @@ BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-pytest BuildRequires: binutils -BuildRequires: python3dist(pexpect) BuildRequires: pandoc # for tests BuildRequires: systemd @@ -26,35 +25,51 @@ BuildRequires: systemd Requires: bubblewrap Requires: systemd-repart >= 254 -%{recoreq}: systemd-container >= 254 +# for systemd-nspawn +%{recoreq}: systemd-container >= 254 +# for the --acl option to allow removing directories generated by mkosi +%{recoreq}: acl %{recoreq}: binutils %{recoreq}: e2fsprogs %{recoreq}: gnupg -%{recoreq}: squashfs-tools +# for when kernels are installed and we need to run depmod +%{recoreq}: kmod +# for secure boot signing +%{recoreq}: openssl +# also for secure boot signing +%{recoreq}: sbsigntools +# for Format=tar or when building debian/ubuntu images %{recoreq}: tar %{recoreq}: veritysetup %{recoreq}: xz %if 0%{?el7} == 0 -Recommends: arch-install-scripts +# for debian/ubuntu images +Recommends: apt +# to create btrfs file systems Recommends: btrfs-progs +# for Format=cpio or when using mkosi to build bootable images with mkosi's default initrd Recommends: cpio -Recommends: debootstrap +# for building centos/fedora/openmandriva/mageia/opensuse images Recommends: (dnf5 or dnf) -Recommends: dosfstools +# for mkosi qemu Recommends: edk2-ovmf Recommends: python3dist(argcomplete) Recommends: python3dist(cryptography) +# for QemuSwtpm= to add a software tpm when running qemu +Recommends: swtpm +# for output compression Recommends: zstd +# for opensuse images +Recommends: zypper %else Recommends: dnf %endif %description -A fancy wrapper around "dnf --installroot", "debootstrap", "pacman", "zypper", -"emerge", and "swupd-extract" that may generate disk images with a number of -bells and whistles. +A fancy wrapper around "dnf --installroot", "apt-get", "pacman", "zypper", and +"emerge" that may generate disk images with a number of bells and whistles. Generated images are tailored to the purpose. This means GPT disk labels are used and only systemd-based images may be generated.