diff options
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/generic/zfs.spec.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 04b0033f6..50b61f010 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -189,6 +189,19 @@ Requires: dracut This package contains a dracut module used to construct an initramfs image which is ZFS aware. +%if 0%{?_initramfs} +%package initramfs +Summary: Initramfs module +Group: System Environment/Kernel +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: initramfs-tools + +%description initramfs +This package contains a initramfs module used to construct an initramfs +image which is ZFS aware. +%endif + %prep %if %{with debug} %define debug --enable-debug @@ -303,6 +316,16 @@ exit 0 %doc dracut/README.dracut.markdown %{_dracutdir}/modules.d/* +%if 0%{?_initramfs} +%files initramfs +%doc contrib/initramfs/README.initramfs.markdown +/usr/share/initramfs-tools/* +%else +# Since we're not building the initramfs package, +# ignore those files. +%exclude /usr/share/initramfs-tools +%endif + %changelog * Wed Apr 8 2015 Brian Behlendorf <[email protected]> - 0.6.4-1 - Released 0.6.4-1 |