]> granicus.if.org Git - zfs/commit
Fix DKMS package upgrade and packager
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 29 May 2014 20:36:24 +0000 (13:36 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 May 2014 18:23:48 +0000 (11:23 -0700)
commit866c162340f3ff3810e2c5fcfd05f95446abd6c2
tree5a76335fa08da00275b029cdd96a08fc37993310
parent79aada6105f3aa3698df28cc10fe30a51c5b47aa
Fix DKMS package upgrade and packager

Running 'yum upgrade zfs-dkms' package could appear to work properly
and still leave you with no zfs modules installed.  This will occur
when only the zfs release, and not the version, are incremented.
This may be the case for a fast moving zfs-testing repository.

During the upgrade process DKMS will realize that zfs-x.y.z is already
installed and remove it.  DKMS then correctly builds the new modules
for zfs-x.y.z.  However, as a final step when the old zfs-x.y.z-r is
removed the %preun script runs and removes the newly build modules.
To handle this case the %preun script has been updated to only run
when the installed version exactly matches the full spec file version.

This change also updated ChangeLog section based on the DKMS
reference spec file.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
rpm/generic/zfs-dkms.spec.in