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