Merging upstream version 1.14.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
868b5312e8
commit
d6fd2fdea9
305 changed files with 20664 additions and 6099 deletions
|
@ -7,7 +7,7 @@ Group: Development/Tools
|
|||
URL: https://github.com/linux-nvme/nvme-cli/
|
||||
Source: nvme-@@VERSION@@.tar.gz
|
||||
Provides: nvme
|
||||
Requires(post): util-linux
|
||||
Requires(post): util-linux systemd systemd-udev
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
|
@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%post
|
||||
if [ $1 -eq 1 ]; then # 1 : This package is being installed for the first time
|
||||
if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then
|
||||
echo $(nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn
|
||||
echo $(%{_sbindir}/nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn
|
||||
fi
|
||||
if [ ! -s %{_sysconfdir}/nvme/hostid ]; then
|
||||
uuidgen > %{_sysconfdir}/nvme/hostid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue