44Summary: dracut to create initramfs
55Name: dracut
66Version: 102
7- Release: 3 %{?dist }
7+ Release: 4 %{?dist }
88# The entire source code is GPLv2+
99# except install/* which is LGPLv2+
1010License: GPLv2+ AND LGPLv2+
@@ -23,13 +23,13 @@ Source7: 00-hyperv.conf
2323Source8: 00-virtio.conf
2424Source9: 00-vrf.conf
2525Source10: 00-xen.conf
26+ Source11: 50-noxattr.conf
2627
2728# allow-liveos-overlay-no-user-confirmation-prompt.patch has been introduced by
2829# the Mariner team to allow skipping the user confirmation prompt during boot
2930# when the overlay of the liveos is backed by ram. This allows the machine to
3031# boot without being blocked on user input in such a scenario.
3132Patch: allow-liveos-overlay-no-user-confirmation-prompt.patch
32- Patch: 0002-disable-xattr.patch
3333Patch: 0006-dracut.sh-validate-instmods-calls.patch
3434Patch: 0011-Remove-reference-to-kernel-module-zlib-in-fips-module.patch
3535Patch: 0012-fix-dracut-functions-avoid-awk-in-get_maj_min.patch
@@ -96,6 +96,13 @@ Requires: %{name} = %{version}-%{release}
9696%description megaraid
9797This package contains dracut configuration needed to build an initramfs with MegaRAID driver support.
9898
99+ %package noxattr
100+ Summary: dracut configuration needed to disable preserving of xattr file metadata
101+ Requires: %{name } = %{version }-%{release }
102+
103+ %description noxattr
104+ This package contains dracut configuration needed to disable preserving of xattr file metadata.
105+
99106%package tools
100107Summary: dracut tools to build the local initramfs
101108Requires: %{name } = %{version }-%{release }
@@ -174,6 +181,7 @@ install -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/dracut.conf.d/00-hyperv.co
174181install -m 0644 %{SOURCE8 } %{buildroot }%{_sysconfdir }/dracut.conf.d/00-virtio.conf
175182install -m 0644 %{SOURCE9 } %{buildroot }%{_sysconfdir }/dracut.conf.d/00-vrf.conf
176183install -m 0644 %{SOURCE10 } %{buildroot }%{_sysconfdir }/dracut.conf.d/00-xen.conf
184+ install -m 0644 %{SOURCE11 } %{buildroot }%{_sysconfdir }/dracut.conf.d/50-noxattr.conf
177185
178186mkdir -p %{buildroot }%{dracutlibdir }/modules.d/20overlayfs/
179187install -p -m 0755 %{SOURCE4 } %{buildroot }%{dracutlibdir }/modules.d/20overlayfs/
@@ -251,6 +259,10 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
251259%defattr(-,root,root,0755)
252260%{_sysconfdir }/dracut.conf.d/50-megaraid.conf
253261
262+ %files noxattr
263+ %defattr(-,root,root,0755)
264+ %{_sysconfdir }/dracut.conf.d/50-noxattr.conf
265+
254266%files tools
255267%defattr(-,root,root,0755)
256268
@@ -276,6 +288,10 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
276288%dir %{_sharedstatedir }/%{name }/overlay
277289
278290%changelog
291+ * Mon Aug 19 2024 Cameron Baird <cameronbaird@microsoft.com> - 102-4
292+ - Drop 0002-disable-xattr.patch
293+ - Introduce dracut-noxattr subpackage to expose this behavior as an option
294+
279295* Thu Aug 08 2024 Cameron Baird <cameronbaird@microsoft.com> - 102-3
280296- Drop 0007-feat-dracut.sh-support-multiple-config-dirs.patch
281297
0 commit comments