From aef9eb52a5cdc8f93b439dc63bb67c62c8e194acee15f77308b639d0fc5605d0 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 15 Dec 2015 15:32:39 +0000 Subject: [PATCH] Accepting request 349016 from home:tiwai:branches:filesystems - Fix missing dependency on coreutils for initrd macros (boo#958562) - Call missing initrd macro at post / postun (boo#958562) OBS-URL: https://build.opensuse.org/request/show/349016 OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=226 --- btrfsprogs.changes | 6 ++++++ btrfsprogs.spec | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/btrfsprogs.changes b/btrfsprogs.changes index 60d1fe5..784b3ec 100644 --- a/btrfsprogs.changes +++ b/btrfsprogs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 10 16:04:16 CET 2015 - tiwai@suse.de + +- Fix missing dependency on coreutils for initrd macros (boo#958562) +- Call missing initrd macro at post / postun (boo#958562) + ------------------------------------------------------------------- Tue Nov 24 00:00:00 CET 2015 - dsterba@suse.cz diff --git a/btrfsprogs.spec b/btrfsprogs.spec index 60f51a7..48595e6 100644 --- a/btrfsprogs.spec +++ b/btrfsprogs.spec @@ -62,6 +62,10 @@ BuildRequires: suse-module-tools BuildRequires: udev BuildRequires: xmlto BuildRequires: zlib-devel +%if 0%{?suse_version} >= 1310 +Requires(post): coreutils +Requires(postun): coreutils +%endif Supplements: filesystem(btrfs) BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -186,6 +190,12 @@ done %postun -n libbtrfs0 -p /sbin/ldconfig %if 0%{?suse_version} >= 1310 +%post +%{?regenerate_initrd_post} + +%postun +%{?regenerate_initrd_post} + %posttrans %{?regenerate_initrd_posttrans} %endif