From 12d40268b189e69c65c09523895745c1e2f5eebefc800f1317dec78a65358365 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 2 Apr 2015 19:02:46 +0000 Subject: [PATCH] Accepting request 294242 from home:elvigia:branches:Base:System - If kmod packge changes, regenerate the initrd. OBS-URL: https://build.opensuse.org/request/show/294242 OBS-URL: https://build.opensuse.org/package/show/Base:System/kmod?expand=0&rev=94 --- kmod.changes | 5 +++++ kmod.spec | 7 +++++++ 2 files changed, 12 insertions(+) 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