diff --git a/kmod.changes b/kmod.changes index 19b7508..a4969b3 100644 --- a/kmod.changes +++ b/kmod.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 2 18:24:23 UTC 2015 - crrodriguez@opensuse.org + +- If kmod packge changes, regenerate the initrd. + ------------------------------------------------------------------- Fri Mar 6 07:58:19 UTC 2015 - meissner@suse.com diff --git a/kmod.spec b/kmod.spec index d1b67d8..0128997 100644 --- a/kmod.spec +++ b/kmod.spec @@ -42,6 +42,7 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: pkgconfig >= 0.21 +BuildRequires: suse-module-tools BuildRequires: xz %if 0%{?sles_version} == 11 BuildRequires: xz-devel >= 4.99 @@ -158,6 +159,12 @@ ln -s "%_libdir/libkmod.so.2.2.9" "$b/%_lib/"; %check make check V=1 +%post +%{?regenerate_initrd_post} + +%posttrans +%{?regenerate_initrd_posttrans} + %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig