Skip to content

Commit

Permalink
build: enable dracut-cpio binary
Browse files Browse the repository at this point in the history
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 <daan.j.demeyer@gmail.com>

https://src.fedoraproject.org/rpms/dracut/pull-request/62
  • Loading branch information
pvalena committed Sep 19, 2024
1 parent 2a9a639 commit 576c617
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .distro/dracut.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 576c617

Please sign in to comment.