%{?systemd_requires} BuildRequires: systemd %define unit_name zfs-import-none.service Name: lustre-ldiskfs-zfs Version: 1 Release: 4%{?dist} Summary: Package to install a Lustre storage server with both ldiskfs and ZFS support License: MIT URL: https://github.com/intel-hpdd/%{name} Source0: %{name}-%{version}.tgz Requires: lustre Requires: lustre-dkms Requires: kmod-lustre-osd-ldiskfs Requires: zfs %description This is a package you can install if you want to create a Lustre storage server capable of creating both ldiskfs and ZFS targets. %prep %setup %build %install mkdir -p %{buildroot}%{_unitdir} cp %{unit_name} %{buildroot}%{_unitdir} %post systemctl disable zfs-import-scan systemctl disable zfs-import-cache systemctl disable zfs-mount systemctl enable %{unit_name} # Remove following line once zfs-zed.service depends # on zfs.target like it should. systemctl start %{unit_name} systemctl start zfs-zed.service %files %{_unitdir}/%{unit_name} %changelog * Fri Mar 2 2018 Joe Grund 1-4 - Add unit to start ZFS services post install. * Tue Aug 22 2017 Brian J. Murrell 1-3 - Remove LU-9745 hack now that that is fixed upstream * Tue Jul 11 2017 Brian J. Murrell 1-2 - Add post to work around LU-9745 by removing the autoinstalled lustre module and re-installing it * Fri Jul 7 2017 Brian J. Murrell 1-1 - Initial package