forked from pool/mkosi
5fb05484dd
- Support for Rocky Linux, Alma Linux, and Gentoo has been added! - A new `ManifestFormat=` option can be used to generate "manifest" files that describe what packages were installed. With `json`, a JSON file that shows the names and versions of all installed packages will be created. With `changelog`, a longer human-readable file that shows package descriptions and changelogs will be generated. This latter format should be considered experimental and likely to change in later versions. - A new `RemovePackages=` option can be used to uninstall packages after the build and finalize scripts have been done. This is useful for the case where packages are required by the build scripts, or pulled in as dependencies for scriptlets of other packages, but are not necessary in the final image. - A new `BaseImage=` option can be used to build "system extensions" a.k.a. "sysexts" — partial images which are mounted on top of an existing system to provide additional files under `/usr/`. See the [systemd-sysext man page](https://www.freedesktop.org/software/systemd/man/systemd-sysext.html) for more information. - A new `CleanPackageMetadata=` option can be used to force or disable the removal of package manager files. When this option is not used, they are removed when the package manager is not installed in the final image. - A new `UseHostRepositories=` option instructs mkosi to use repository configuration from the host system, instead of the internal list. - A new `SshAgent=` option configures the path to the ssh agent. - A new `SshPort=` option overrides the port used for ssh. - The `Verity=` setting supports a new value `signed`. When set, verity data will be signed and the result inserted as an additional partition in the image. See https://systemd.io/DISCOVERABLE_PARTITIONS for details about signed disk images. This information is used by `systemd-nspawn`, `systemd-dissect`, `systemd-sysext`, `systemd-portabled` and `systemd`'s `RootImage=` setting (among others) to cryptographically validate the image OBS-URL: https://build.opensuse.org/package/show/Virtualization/mkosi?expand=0&rev=9
78 lines
2.2 KiB
RPMSpec
78 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package mkosi
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: mkosi
|
|
Version: 11
|
|
Release: 0
|
|
Summary: Build Legacy-Free OS Images
|
|
License: LGPL-2.1-or-later
|
|
Group: System/Management
|
|
URL: https://github.com/systemd/mkosi
|
|
Source: https://github.com/systemd/mkosi/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: pkgconfig(python3) >= 3.7
|
|
Requires: python3 >= 3.7
|
|
Requires: squashfs
|
|
Requires: tar
|
|
Requires: xz
|
|
Recommends: arch-install-scripts
|
|
Recommends: btrfsprogs
|
|
Recommends: debootstrap >= 1.0.117
|
|
Recommends: dnf >= 4.8.0
|
|
Recommends: dosfstools
|
|
Recommends: dpkg
|
|
Recommends: edk2-ovmf
|
|
Recommends: gnupg
|
|
Recommends: pacman >= 6.0.1
|
|
Recommends: veritysetup
|
|
Recommends: zstd
|
|
BuildArch: noarch
|
|
ExclusiveArch: x86_64
|
|
|
|
%description
|
|
A fancy wrapper around dnf --installroot, debootstrap, pacstrap and zypper that
|
|
may generate disk images with a number of bells and whistles.
|
|
|
|
Generated images are "legacy-free". This means only GPT disk labels
|
|
(and no MBR disk labels) are supported, and only systemd based images
|
|
may be generated. Moreover, for bootable images only EFI systems are
|
|
supported (not plain MBR/BIOS).
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%check
|
|
%{buildroot}%{_bindir}/mkosi -h >/dev/null
|
|
|
|
%files
|
|
%doc mkosi.md README.md
|
|
%license LICENSE
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/mkosi.1%{?ext_man}
|
|
%{python3_sitelib}/mkosi/
|
|
%{python3_sitelib}/mkosi-%{version}-py*.egg-info/
|
|
|
|
%changelog
|