Clean up spec file
Changes recommended by rpmlint to clean up the spec file. JIRA: https://issues.redhat.com/browse/RHEL-1147 Signed-off-by: John Meneghini <jmeneghi@redhat.com>
This commit is contained in:
parent
22c7546008
commit
5e7490b949
@ -53,11 +53,6 @@ nvme-cli provides NVM-Express user space tooling for Linux.
|
|||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
|
|
||||||
# hostid and hostnqn are supposed to be unique per machine. We obviously
|
|
||||||
# can't package them.
|
|
||||||
#rm -f %{buildroot}%{_sysconfdir}/nvme/hostid
|
|
||||||
#rm -f %{buildroot}%{_sysconfdir}/nvme/hostnqn
|
|
||||||
|
|
||||||
# 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?
|
||||||
rm -f %{buildroot}/usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf
|
rm -f %{buildroot}/usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf
|
||||||
@ -89,19 +84,19 @@ rm -rf %{buildroot}%{_pkgdocdir}/nvme
|
|||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
|
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
|
||||||
if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then
|
if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then
|
||||||
echo $(nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn
|
echo $(nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn
|
||||||
fi
|
fi
|
||||||
if [ ! -s %{_sysconfdir}/nvme/hostid ]; then
|
if [ ! -s %{_sysconfdir}/nvme/hostid ]; then
|
||||||
echo $(nvme show-hostnqn | sed 's/^.*uuid://') > %{_sysconfdir}/nvme/hostid
|
echo $(nvme show-hostnqn | sed 's/^.*uuid://') > %{_sysconfdir}/nvme/hostid
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# apply udev and systemd changes that we did
|
# apply udev and systemd changes that we did
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
systemctl enable nvmefc-boot-connections
|
systemctl enable nvmefc-boot-connections
|
||||||
fi
|
fi
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
udevadm control --reload-rules && udevadm trigger
|
udevadm control --reload-rules && udevadm trigger
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user