From 4d573e3be03928aa82fc6182080f6a263c530ce3 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 28 May 2019 09:36:49 +0200 Subject: [PATCH] dracut.spec: fix build on openSUSE When testing the previous commit on openSUSE it turned out that it didn't really work in the first place, without a few tweaks. --- dracut.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dracut.spec b/dracut.spec index bdf7bb67e..30aee3321 100644 --- a/dracut.spec +++ b/dracut.spec @@ -32,7 +32,7 @@ Source1: https://www.gnu.org/licenses/lgpl-2.1.txt BuildRequires: bash BuildRequires: git -BuildRequires: kmod-devel >= 23 +BuildRequires: pkgconfig(libkmod) >= 23 BuildRequires: gcc %if 0%{?fedora} || 0%{?rhel} @@ -319,6 +319,9 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne %{_mandir}/man8/mkinitrd.8* %{_mandir}/man1/lsinitrd.1* %endif +%if 0%{?suse_version} +%{_mandir}/man8/mkinitrd-suse.8* +%endif %{_mandir}/man7/dracut.kernel.7* %{_mandir}/man7/dracut.cmdline.7* %{_mandir}/man7/dracut.modules.7* -- 2.47.3