From f9d13336dddd40ce092b5e8f5c89a9dca28fd5a0fa5da4c6e6eab4a625b5884b Mon Sep 17 00:00:00 2001 From: LiuhuaMelody Wang Date: Thu, 17 Dec 2015 03:23:36 +0000 Subject: [PATCH] Accepting request 349011 from home:tiwai:branches:Base:System - Fix missing dependency on coreutils for initrd macros (boo#958562) - Call missing initrd macro at postun (boo#958562) OBS-URL: https://build.opensuse.org/request/show/349011 OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=143 --- lvm2.changes | 6 ++++++ lvm2.spec | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/lvm2.changes b/lvm2.changes index 63a8097..15a9259 100644 --- a/lvm2.changes +++ b/lvm2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 14 14:52:00 CET 2015 - tiwai@suse.de + +- Fix missing dependency on coreutils for initrd macros (boo#958562) +- Call missing initrd macro at postun (boo#958562) + ------------------------------------------------------------------- Fri Dec 11 16:03:58 UTC 2015 - dimstar@opensuse.org diff --git a/lvm2.spec b/lvm2.spec index 914a931..e8c2b73 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -104,6 +104,8 @@ BuildRequires: suse-module-tools BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(udev) Requires: device-mapper >= 1.02.90 +Requires(post): coreutils +Requires(postun): coreutils Provides: lvm = %version-%release # Not a real replacement but we drop evms Provides: evms = 2.5.5 @@ -287,6 +289,7 @@ popd %postun /sbin/ldconfig +%{?regenerate_initrd_post} %service_del_postun blk-availability.service lvm2-monitor.service lvm2-lvmetad.service %files @@ -458,6 +461,8 @@ BuildRequires: suse-module-tools BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(libudev) Requires: expat +Requires(post): coreutils +Requires(postun): coreutils PreReq: %insserv_prereq %fillup_prereq %description -n device-mapper @@ -480,6 +485,7 @@ mapper. %postun -n device-mapper %service_del_postun dm-event.service dm-event.socket +%{?regenerate_initrd_post} /sbin/ldconfig %files -n device-mapper