From 576c617506fcce7ac6c8e08c036b01c0b0c167cf Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Thu, 19 Sep 2024 21:22:12 +0200 Subject: [PATCH] build: enable dracut-cpio binary This binary uses reflinks to speed up initramfs generation on btrfs and XFS filesystems so let's build it and include it in the dracut package to speed up initramfs generation. Author: Daan De Meyer https://src.fedoraproject.org/rpms/dracut/pull-request/62 --- .distro/dracut.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.distro/dracut.spec b/.distro/dracut.spec index eea751f7..98e82f3b 100644 --- a/.distro/dracut.spec +++ b/.distro/dracut.spec @@ -35,6 +35,7 @@ BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: systemd BuildRequires: bash-completion +BuildRequires: cargo %if %{with doc} BuildRequires: docbook-style-xsl docbook-dtds libxslt @@ -46,6 +47,8 @@ Provides: dracut-fips = %{version}-%{release} Obsoletes: dracut-fips-aesni <= 047 Provides: dracut-fips-aesni = %{version}-%{release} +Provides: bundled(crate(crosvm)) = 0.1.0 + Requires: bash >= 4 Requires: coreutils Requires: cpio @@ -158,6 +161,7 @@ cp %{SOURCE1} . %configure --systemdsystemunitdir=%{_unitdir} \ --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion) \ --libdir=%{_prefix}/lib \ + --enable-dracut-cpio \ %if %{without doc} --disable-documentation \ %endif @@ -226,6 +230,7 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/ %{dracutlibdir}/dracut-install %{dracutlibdir}/dracut-util %{dracutlibdir}/skipcpio +%{dracutlibdir}/dracut-cpio %config(noreplace) %{_sysconfdir}/dracut.conf %{dracutlibdir}/dracut.conf.d/01-dist.conf %dir %{_sysconfdir}/dracut.conf.d