Partially restore the post-install script.

Leave only the code that creates hostid and hostnqn out.

Resolves: RHEL-78043

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
This commit is contained in:
Maurizio Lombardi 2025-01-30 14:16:53 +01:00
parent eaad29d02b
commit ad1e582535

View File

@ -5,7 +5,7 @@
Name: nvme-cli
Version: 2.11
Release: 4%{?dist}
Release: 5%{?dist}
Summary: NVMe management command line interface
License: GPL-2.0-only
@ -82,7 +82,34 @@ rm -rf %{buildroot}%{_pkgdocdir}/nvme
%{nmlibdir}/dispatcher.d/99-nvme-nbft-connect.sh
%{nmlibdir}/conf.d/99-nvme-nbft-no-ignore-carrier.conf
%post
%systemd_post nvmefc-boot-connections.service
%systemd_post nvmf-autoconnect.service
%systemd_post nvmf-connect@.service
%systemd_post nvmf-connect-nbft.service
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
# apply udev and systemd changes that we did
systemctl daemon-reload
udevadm control --reload-rules && udevadm trigger
exit 0
fi
%preun
%systemd_preun nvmefc-boot-connections.service
%systemd_preun nvmf-autoconnect.service
%systemd_preun nvmf-connect@.service
%systemd_preun nvmf-connect-nbft.service
%postun
%systemd_postun nvmefc-boot-connections.service
%systemd_postun nvmf-autoconnect.service
%systemd_postun nvmf-connect@.service
%systemd_postun nvmf-connect-nbft.service
%changelog
* Thu Jan 30 2025 Maurizio Lombardi <mlombard@redhat.com> - 2.11-5
- Partially restore the post install script (RHEL-78043)
* Fri Jan 24 2025 Maurizio Lombardi <mlombard@redhat.com> - 2.11-4
- Add kernel-headers to BuildRequires (RHEL-70857)