* Thu May 02 2024 Tomas Bzatek <tbzatek@redhat.com> - 2.8-2 - Install custom nvmf-connect-nbft.sh NetworkManager hook

This commit is contained in:
Tomas Bzatek 2024-05-02 16:42:23 +02:00 committed by root
parent cbf422dc87
commit 5747caf97b
3 changed files with 14 additions and 1 deletions

1
.nvme-cli.metadata Normal file
View File

@ -0,0 +1 @@
33eaae0a2334451553952ac701f8568a52fd2a98 nvme-cli-2.9.1.tar.gz

View File

@ -3,12 +3,13 @@
Name: nvme-cli
Version: 2.9.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: NVMe management command line interface
License: GPL-2.0-only
URL: https://github.com/linux-nvme/nvme-cli
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: nvmf-connect-nbft.sh
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
%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 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
# 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
%{_sysconfdir}/NetworkManager/dispatcher.d/nvmf-connect-nbft.sh
%post
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
@ -90,6 +94,9 @@ if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
fi
%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
- Update to version 2.9.1

5
nvmf-connect-nbft.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
if [[ "$1" == nbft* ]] && [[ "$2" == "up" ]]; then
systemctl start nvmf-connect-nbft.service
fi