* Thu May 02 2024 Tomas Bzatek <tbzatek@redhat.com> - 2.8-2
- Install custom nvmf-connect-nbft.sh NetworkManager hook Resolves: RHEL-18912
This commit is contained in:
parent
cbf422dc87
commit
4905e06746
@ -3,12 +3,13 @@
|
|||||||
|
|
||||||
Name: nvme-cli
|
Name: nvme-cli
|
||||||
Version: 2.9.1
|
Version: 2.9.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: NVMe management command line interface
|
Summary: NVMe management command line interface
|
||||||
|
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
URL: https://github.com/linux-nvme/nvme-cli
|
URL: https://github.com/linux-nvme/nvme-cli
|
||||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Source1: nvmf-connect-nbft.sh
|
||||||
|
|
||||||
Patch0: 0001-Revert-fabrics-Use-corresponding-hostid-when-hostnqn.patch
|
Patch0: 0001-Revert-fabrics-Use-corresponding-hostid-when-hostnqn.patch
|
||||||
|
|
||||||
@ -40,6 +41,8 @@ nvme-cli provides NVM-Express user space tooling for Linux.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
|
||||||
|
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
|
||||||
|
|
||||||
# Do not install the dracut rule yet. See rhbz 1742764
|
# Do not install the dracut rule yet. See rhbz 1742764
|
||||||
# Do we want to keep this here? Now that we have boot support for nvme/fc + tcp?
|
# Do we want to keep this here? Now that we have boot support for nvme/fc + tcp?
|
||||||
@ -70,6 +73,7 @@ rm -rf %{buildroot}%{_pkgdocdir}/nvme
|
|||||||
# Do not install the dracut rule yet. See rhbz 1742764
|
# Do not install the dracut rule yet. See rhbz 1742764
|
||||||
# Is this still true? Now that we support nvme-of boot, do we want to install this file?
|
# Is this still true? Now that we support nvme-of boot, do we want to install this file?
|
||||||
# /usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf
|
# /usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf
|
||||||
|
%{_sysconfdir}/NetworkManager/dispatcher.d/nvmf-connect-nbft.sh
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
|
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
|
||||||
@ -90,6 +94,9 @@ if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 07 2024 Tomas Bzatek <tbzatek@redhat.com> - 2.9.1-2
|
||||||
|
- Install custom nvmf-connect-nbft.sh NetworkManager hook (RHEL-18912)
|
||||||
|
|
||||||
* Tue May 07 2024 Maurizio Lombardi <mlombard@redhat.com> - 2.9.1-1
|
* Tue May 07 2024 Maurizio Lombardi <mlombard@redhat.com> - 2.9.1-1
|
||||||
- Update to version 2.9.1
|
- Update to version 2.9.1
|
||||||
|
|
||||||
|
5
nvmf-connect-nbft.sh
Normal file
5
nvmf-connect-nbft.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ "$1" == nbft* ]] && [[ "$2" == "up" ]]; then
|
||||||
|
systemctl start nvmf-connect-nbft.service
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user