Remove the post script
Resolves: RHEL-68495 Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
This commit is contained in:
parent
1787c4047c
commit
762906d928
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: nvme-cli
|
Name: nvme-cli
|
||||||
Version: 2.11
|
Version: 2.11
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: NVMe management command line interface
|
Summary: NVMe management command line interface
|
||||||
|
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
@ -84,25 +84,10 @@ rm -rf %{buildroot}%{_pkgdocdir}/nvme
|
|||||||
%{nmlibdir}/dispatcher.d/99-nvme-nbft-connect.sh
|
%{nmlibdir}/dispatcher.d/99-nvme-nbft-connect.sh
|
||||||
%{nmlibdir}/conf.d/99-nvme-nbft-no-ignore-carrier.conf
|
%{nmlibdir}/conf.d/99-nvme-nbft-no-ignore-carrier.conf
|
||||||
|
|
||||||
%post
|
|
||||||
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
|
|
||||||
if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then
|
|
||||||
echo $(nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn
|
|
||||||
fi
|
|
||||||
if [ ! -s %{_sysconfdir}/nvme/hostid ]; then
|
|
||||||
echo $(nvme show-hostnqn | sed 's/^.*uuid://') > %{_sysconfdir}/nvme/hostid
|
|
||||||
fi
|
|
||||||
|
|
||||||
# apply udev and systemd changes that we did
|
|
||||||
if [ $1 -eq 1 ]; then
|
|
||||||
systemctl enable nvmefc-boot-connections
|
|
||||||
fi
|
|
||||||
systemctl daemon-reload
|
|
||||||
udevadm control --reload-rules && udevadm trigger
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 02 2024 Maurizio Lombardi <mlombard@redhat.com> - 2.11-3
|
||||||
|
- Remove the post script (RHEL-68495)
|
||||||
|
|
||||||
* Wed Nov 20 2024 Maurizio Lombardi <mlombard@redhat.com> - 2.11-2
|
* Wed Nov 20 2024 Maurizio Lombardi <mlombard@redhat.com> - 2.11-2
|
||||||
- Rebuild for RHEL-68310
|
- Rebuild for RHEL-68310
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user