]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.spec: Add dracut-squash package
authorKairui Song <kasong@redhat.com>
Thu, 20 Sep 2018 09:23:19 +0000 (17:23 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 21 Sep 2018 08:32:04 +0000 (10:32 +0200)
As 99squash module requires extra dependency and it introduces new
files, add a new sub package for this module.

dracut.spec

index 09c74478129d28cdfd01268fbbdb5a275b4b6199..d9cfdf1ce79e24210cb69dfa41578df6a969cfeb 100644 (file)
@@ -178,6 +178,16 @@ Requires: %{name} = %{version}-%{release}
 %description tools
 This package contains tools to assemble the local initrd and host configuration.
 
+%package squash
+Summary: dracut module to build an initramfs with most files in a squashfs image
+Requires: %{name} = %{version}-%{release}
+Requires: squash-tools
+
+%description squash
+This package provides a dracut module to build an initramfs, but store most files
+in a squashfs image, result in a smaller initramfs size and reduce runtime memory
+usage.
+
 %prep
 %autosetup -n %{name}-%{version} -S git_am
 cp %{SOURCE1} .
@@ -439,6 +449,9 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne
 %doc %{_mandir}/man8/dracut-catimages.8*
 %endif
 
+%files squash
+%{dracutlibdir}/modules.d/99squash
+
 %{_bindir}/dracut-catimages
 %dir /boot/dracut
 %dir /var/lib/dracut