9f65cc
From 7c6839180cd616cebaeefd0cb05b60d022388277 Mon Sep 17 00:00:00 2001
9f65cc
From: Adam Williamson <awilliam@redhat.com>
9f65cc
Date: Thu, 26 Nov 2020 11:29:45 -0800
9f65cc
Subject: [PATCH] Drop 51-dracut-rescue-postinst.sh entirely
9f65cc
9f65cc
It is only installed on RHEL 8+, but as noted in the first commit
9f65cc
that tried to do this - 0bb9a683 - we already have branches for
9f65cc
all RHEL releases, so there's no point keeping such a conditional
9f65cc
on the master branch. After 0bb9a683, 51-dracut-rescue-postinst.sh
9f65cc
was re-added because Fedora 30 needed it, with a FIXME saying to
9f65cc
remove it after F30 was released. But instead of that happening, it
9f65cc
got changed to a conditional to install it on Fedora <= 30 or RHEL
9f65cc
<= 8 in 9e68789d and the FIXME was removed, then in 9eb1d1ed that
9f65cc
conditional was simplified to only refer to RHEL, so we wound up
9f65cc
with this situation.
9f65cc
9f65cc
Note the last two commits were never ported to the RHEL-8 branch,
9f65cc
so it's broken, I will send a separate PR for that.
9f65cc
9f65cc
Signed-off-by: Adam Williamson <awilliam@redhat.com>
9f65cc
9f65cc
Cherry-picked from: b3e55bde30b8d34c7ed888794ef3f5e9f028b267
9f65cc
Resolves: #1771517
9f65cc
---
9f65cc
 dracut.spec | 10 ----------
9f65cc
 1 file changed, 10 deletions(-)
9f65cc
9f65cc
diff --git a/dracut.spec b/dracut.spec
9f65cc
index dcaafa61..c8783699 100644
9f65cc
--- a/dracut.spec
9f65cc
+++ b/dracut.spec
9f65cc
@@ -277,15 +277,9 @@ rm -f -- $RPM_BUILD_ROOT%{_bindir}/mkinitrd
9f65cc
 rm -f -- $RPM_BUILD_ROOT%{_bindir}/lsinitrd
9f65cc
 %endif
9f65cc
 
9f65cc
-%if 0%{?fedora} || 0%{?rhel}
9f65cc
 echo 'hostonly="no"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-generic-image.conf
9f65cc
 echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-rescue.conf
9f65cc
 
9f65cc
-# FIXME: remove after F30
9f65cc
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d
9f65cc
-install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh
9f65cc
-%endif
9f65cc
-
9f65cc
 %files
9f65cc
 %if %{with doc}
9f65cc
 %doc README HACKING TODO AUTHORS NEWS dracut.html dracut.png dracut.svg
9f65cc
@@ -477,11 +471,7 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne
9f65cc
 
9f65cc
 %files config-rescue
9f65cc
 %{dracutlibdir}/dracut.conf.d/02-rescue.conf
9f65cc
-%if 0%{?fedora} || 0%{?rhel}
9f65cc
 %{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
9f65cc
-# FIXME: remove after F30
9f65cc
-%{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh
9f65cc
-%endif
9f65cc
 
9f65cc
 %triggerin network -- dracut-network < 049-83.git20200525
9f65cc
 echo '# Since rhel-8.3 dracut moved to use NetworkManager
9f65cc