Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
602c7732f0 |
3 changed files with 30 additions and 5 deletions
15
99-nvme-nbft-no-ignore-carrier.conf
Normal file
15
99-nvme-nbft-no-ignore-carrier.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Boot from NVMe over TCP (NBFT)
|
||||||
|
#
|
||||||
|
# For NVMe/TCP connections that provide namespaces containing rootfs
|
||||||
|
# it is crucial to react on carrier events and reconnect any missing
|
||||||
|
# NVMe/TCP connections as defined in the ACPI NBFT table. A custom
|
||||||
|
# /usr/lib/NetworkManager/dispatcher.d/99-nvme-nbft-connect.sh hook
|
||||||
|
# will respawn nvmf-connect-nbft.service on such occasion.
|
||||||
|
|
||||||
|
[device-nbft-no-ignore-carrier]
|
||||||
|
|
||||||
|
# only affects nbft0, nbft1, ... interfaces
|
||||||
|
match-device=interface-name:nbft*
|
||||||
|
|
||||||
|
# react on link up/down events
|
||||||
|
ignore-carrier=no
|
||||||
|
|
@ -1,15 +1,18 @@
|
||||||
# RHEL 8 compatibility
|
# RHEL 8 compatibility
|
||||||
%{!?version_no_tilde: %define version_no_tilde %{shrink:%(echo '%{version}' | tr '~' '-')}}
|
%{!?version_no_tilde: %define version_no_tilde %{shrink:%(echo '%{version}' | tr '~' '-')}}
|
||||||
|
|
||||||
|
%global nmlibdir %{_prefix}/lib/NetworkManager
|
||||||
|
|
||||||
Name: nvme-cli
|
Name: nvme-cli
|
||||||
Version: 2.10.2
|
Version: 2.10.2
|
||||||
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_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
|
Source0: %{url}/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
|
||||||
Source1: nvmf-connect-nbft.sh
|
Source1: 99-nvme-nbft-connect.sh
|
||||||
|
Source2: 99-nvme-nbft-no-ignore-carrier.conf
|
||||||
|
|
||||||
BuildRequires: meson >= 0.50.0
|
BuildRequires: meson >= 0.50.0
|
||||||
BuildRequires: gcc gcc-c++
|
BuildRequires: gcc gcc-c++
|
||||||
|
|
@ -45,8 +48,10 @@ nvme-cli provides NVM-Express user space tooling for Linux.
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
%{__install} -pm 644 README.md %{buildroot}%{_pkgdocdir}
|
%{__install} -pm 644 README.md %{buildroot}%{_pkgdocdir}
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
|
mkdir -p $RPM_BUILD_ROOT%{nmlibdir}/dispatcher.d
|
||||||
%{__install} -pm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
|
mkdir -p $RPM_BUILD_ROOT%{nmlibdir}/conf.d
|
||||||
|
%{__install} -pm 755 %{SOURCE1} $RPM_BUILD_ROOT%{nmlibdir}/dispatcher.d/
|
||||||
|
%{__install} -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{nmlibdir}/conf.d/
|
||||||
|
|
||||||
# hostid and hostnqn are supposed to be unique per machine. We obviously
|
# hostid and hostnqn are supposed to be unique per machine. We obviously
|
||||||
# can't package them.
|
# can't package them.
|
||||||
|
|
@ -82,10 +87,15 @@ rm -rf %{buildroot}%{_pkgdocdir}/nvme
|
||||||
%{_udevrulesdir}/71-nvmf-netapp.rules
|
%{_udevrulesdir}/71-nvmf-netapp.rules
|
||||||
# Do not install the dracut rule yet. See rhbz 1742764
|
# Do not install the dracut rule yet. See rhbz 1742764
|
||||||
# /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
|
%{nmlibdir}/dispatcher.d/99-nvme-nbft-connect.sh
|
||||||
|
%{nmlibdir}/conf.d/99-nvme-nbft-no-ignore-carrier.conf
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 26 2024 Tomas Bzatek <tbzatek@redhat.com> - 2.10.2-2
|
||||||
|
- Install NetworkManager override for nbft interfaces
|
||||||
|
- Rename reconnect NetworkManager hook to 99-nvme-nbft-connect.sh
|
||||||
|
|
||||||
* Mon Aug 05 2024 Tomas Bzatek <tbzatek@redhat.com> - 2.10.2-1
|
* Mon Aug 05 2024 Tomas Bzatek <tbzatek@redhat.com> - 2.10.2-1
|
||||||
- Update to 2.10.2
|
- Update to 2.10.2
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue