forked from dm-vdo/kvdo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Modified spec files to work with the Fedora copr repository. - Removed obsolete nagios module. - Fixed prerun handling of loaded kernel modules - Modified spec files to use systemd macros - Updated the vdo.8 man page - Improved some error messages
- Loading branch information
Showing
7 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
%define spec_release 1 | ||
|
||
%define kmod_name kvdo | ||
%define kmod_driver_version 6.1.1.12 | ||
%define kmod_driver_version 6.1.1.24 | ||
%define kmod_rpm_release %{spec_release} | ||
%define kmod_kernel_version 3.10.0-693.el7 | ||
%define kmod_headers_version %(rpm -qa kernel-devel | sed 's/^kernel-devel-//') | ||
|
@@ -135,8 +135,15 @@ fi | |
|
||
%preun | ||
rpm -ql kmod-kvdo-%{kmod_driver_version}-%{kmod_rpm_release}%{?dist}.$(arch) | grep '\.ko$' > /var/run/rpm-kmod-%{kmod_name}-modules | ||
modprobe -r kvdo | ||
modprobe -r uds | ||
|
||
# Check whether kvdo or uds is loaded, and if so attempt to remove it. A | ||
# failure here means there is still something using the module, which should be | ||
# cleared up before attempting to remove again. | ||
for module in kvdo uds; do | ||
if grep -q "^${module}" /proc/modules; then | ||
modprobe -r ${module} | ||
fi | ||
done | ||
|
||
%postun | ||
modules=( $(cat /var/run/rpm-kmod-%{kmod_name}-modules) ) | ||
|
@@ -209,7 +216,11 @@ install -m 644 -D $PWD/obj/%{kmod_kbuild_dir}/Module.symvers $RPM_BUILD_ROOT/usr | |
rm -rf $RPM_BUILD_ROOT | ||
|
||
%changelog | ||
* Sat Feb 17 2018 - J. corwin Coburn <[email protected]> - 6.1.1.12-1 | ||
- Added support for 4.15 kernels. | ||
- Modified spec files to support building on more distros. | ||
- Removed unused code from the UDS module. | ||
* Thu Mar 22 2018 - J. corwin Coburn <[email protected]> - 6.1.1.24-1 | ||
- Modified spec files to work with the Fedora copr repository. | ||
- Removed obsolete nagios module. | ||
- Fixed prerun handling of loaded kernel modules | ||
- Modified spec files to use systemd macros | ||
- Updated the vdo.8 man page | ||
- Improved some error messages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters