|
Harald Hoyer |
5f0dd7 |
From 9e68789d66a6a383e5c46f687350897705c7994f Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
5f0dd7 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
5f0dd7 |
Date: Wed, 4 Mar 2020 14:39:39 +0100
|
|
Harald Hoyer |
5f0dd7 |
Subject: [PATCH] dracut.spec: add version check for deprecated files
|
|
Harald Hoyer |
5f0dd7 |
|
|
Harald Hoyer |
5f0dd7 |
---
|
|
Harald Hoyer |
5f0dd7 |
dracut.spec | 5 ++---
|
|
Harald Hoyer |
5f0dd7 |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
Harald Hoyer |
5f0dd7 |
|
|
Harald Hoyer |
5f0dd7 |
diff --git a/dracut.spec b/dracut.spec
|
|
Harald Hoyer |
5f0dd7 |
index e336a25c..03b41471 100644
|
|
Harald Hoyer |
5f0dd7 |
--- a/dracut.spec
|
|
Harald Hoyer |
5f0dd7 |
+++ b/dracut.spec
|
|
Harald Hoyer |
5f0dd7 |
@@ -278,8 +278,7 @@ rm -f -- $RPM_BUILD_ROOT%{_mandir}/man1/lsinitrd.1*
|
|
Harald Hoyer |
5f0dd7 |
echo 'hostonly="no"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-generic-image.conf
|
|
Harald Hoyer |
5f0dd7 |
echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-rescue.conf
|
|
Harald Hoyer |
5f0dd7 |
|
|
Harald Hoyer |
5f0dd7 |
-%if 0%{?fedora} || 0%{?rhel}
|
|
Harald Hoyer |
5f0dd7 |
-# FIXME: remove after F30
|
|
Harald Hoyer |
5f0dd7 |
+%if 0%{?fedora} <= 30 || 0%{?rhel} <= 8
|
|
Harald Hoyer |
5f0dd7 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d
|
|
Harald Hoyer |
5f0dd7 |
install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh
|
|
Harald Hoyer |
5f0dd7 |
%endif
|
|
Harald Hoyer |
5f0dd7 |
@@ -475,7 +474,7 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne
|
|
Harald Hoyer |
5f0dd7 |
%files config-rescue
|
|
Harald Hoyer |
5f0dd7 |
%{dracutlibdir}/dracut.conf.d/02-rescue.conf
|
|
Harald Hoyer |
5f0dd7 |
%{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
|
|
Harald Hoyer |
5f0dd7 |
-%if 0%{?fedora} || 0%{?rhel}
|
|
Harald Hoyer |
5f0dd7 |
+%if 0%{?fedora} <= 30 || 0%{?rhel} <= 8
|
|
Harald Hoyer |
5f0dd7 |
# FIXME: remove after F30
|
|
Harald Hoyer |
5f0dd7 |
%{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh
|
|
Harald Hoyer |
5f0dd7 |
%endif
|
|
Harald Hoyer |
5f0dd7 |
|