44Summary: dracut to create initramfs
55Name: dracut
66Version: 102
7- Release: 12 %{?dist }
7+ Release: 13 %{?dist }
88# The entire source code is GPLv2+
99# except install/* which is LGPLv2+
1010License: GPLv2+ AND LGPLv2+
@@ -31,6 +31,8 @@ Source11: 50-noxattr.conf
3131Source12: 90livenet/azl-liveos-artifacts-download.service
3232Source13: 90livenet/azl-liveos-artifacts-download.sh
3333Source14: 90overlayfs/azl-configure-selinux.sh
34+ Source15: 90tmpfsroot/tmpfsroot-module-setup.sh
35+ Source16: 90tmpfsroot/tmpfsroot-mount.sh
3436
3537# allow-liveos-overlay-no-user-confirmation-prompt.patch has been introduced by
3638# the Azure Linux team to allow skipping the user confirmation prompt during
@@ -156,6 +158,13 @@ Requires: %{name} = %{version}-%{release}
156158%description systemd-cryptsetup
157159This package contains dracut module needed to build an initramfs with systemd-cryptsetup enabled.
158160
161+ %package tmpfsroot
162+ Summary: dracut module to support root on tmpfs
163+ Requires: %{name } = %{version }-%{release }
164+
165+ %description tmpfsroot
166+ This package contains dracut module root on tmpfs.
167+
159168%package virtio
160169Summary: dracut configuration needed to build an initramfs with virtio guest drivers
161170Requires: %{name } = %{version }-%{release }
@@ -231,6 +240,10 @@ mkdir -p %{buildroot}%{dracutlibdir}/modules.d/20overlayfs/
231240install -p -m 0755 %{SOURCE4 } %{buildroot }%{dracutlibdir }/modules.d/20overlayfs/
232241install -p -m 0755 %{SOURCE5 } %{buildroot }%{dracutlibdir }/modules.d/20overlayfs/
233242
243+ mkdir -p %{buildroot }%{dracutlibdir }/modules.d/90tmpfsroot/
244+ install -p -m 0755 %{SOURCE15 } %{buildroot }%{dracutlibdir }/modules.d/90tmpfsroot/module-setup.sh
245+ install -p -m 0755 %{SOURCE16 } %{buildroot }%{dracutlibdir }/modules.d/90tmpfsroot/
246+
234247touch %{buildroot }%{_var }/opt/%{name }/log/%{name }.log
235248ln -srv %{buildroot }%{_var }/opt/%{name }/log/%{name }.log %{buildroot }%{_var }/log/
236249
@@ -251,6 +264,7 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
251264%exclude %{_libdir }/kernel
252265%exclude %{dracutlibdir }/modules.d/20overlayfs
253266%exclude %{dracutlibdir }/modules.d/90systemd-cryptsetup
267+ %exclude %{dracutlibdir }/modules.d/90tmpfsroot
254268%{_libdir }/%{name }/%{name }-init.sh
255269%{_datadir }/pkgconfig/%{name }.pc
256270%{dracutlibdir }/%{name }-functions.sh
@@ -319,6 +333,10 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
319333%dir %{dracutlibdir }/modules.d/90systemd-cryptsetup
320334%{dracutlibdir }/modules.d/90systemd-cryptsetup/*
321335
336+ %files tmpfsroot
337+ %dir %{dracutlibdir }/modules.d/90tmpfsroot
338+ %{dracutlibdir }/modules.d/90tmpfsroot/*
339+
322340%files virtio
323341%defattr(-,root,root,0755)
324342%{_sysconfdir }/dracut.conf.d/00-virtio.conf
@@ -337,6 +355,9 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
337355%dir %{_sharedstatedir }/%{name }/overlay
338356
339357%changelog
358+ * Fri May 16 2025 Swee Yee Fonn <swee.yee.fonn@intel.com> - 102-13
359+ - Add tmpfsroot dracut module
360+
340361* Thu Apr 28 2025 Ranjan Dutta <ranjan.dutta@intel.com> - 102-12
341362- merge from Azure Linux tag 3.0.20250423-3.0
342363- Add fix for systemd-cryptsetup module to be included in initramfs when needed
0 commit comments