From e57dcde8a5a22fdcdf260d0a672898f987c2ce89 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 19 2022 07:23:11 +0000 Subject: Add dracut conf --- diff --git a/SPECS/kmod-btrfs.spec b/SPECS/kmod-btrfs.spec index d229ae2..258538b 100644 --- a/SPECS/kmod-btrfs.spec +++ b/SPECS/kmod-btrfs.spec @@ -17,7 +17,7 @@ Name: kmod-%{pkg} Version: 5.14.0.34 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Btrfs filesystem support License: GPLv2 @@ -76,6 +76,8 @@ popd %install %{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/fs src/%{pkg}.ko +%{__install} -d %{buildroot}/%{_sysconfdir}/dracut.conf.d/ +echo "add_drivers+=\" %{pkg} \"" > %{buildroot}/%{_sysconfdir}/dracut.conf.d/%{pkg}.conf # Make .ko objects temporarily executable for automatic stripping find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+ @@ -124,9 +126,13 @@ fi %defattr(644,root,root,755) /lib/modules/%{kernel_version}.%{_arch} %license COPYING +%config(noreplace) %{_sysconfdir}/dracut.conf.d/%{pkg}.conf %changelog +* Wed Jan 19 2022 Peter Georg - 5.14.0.34-2 +- Add dracut conf to include btrfs in initramfs + * Mon Jan 17 2022 Kmods SIG - 5.14.0.34-1 - Switch to EL kernel source and versioning - kABI tracking kmod package (kernel >= 5.14.0-44.el9)