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
|
||||
%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 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
|
||||
@ -89,19 +84,19 @@ rm -rf %{buildroot}%{_pkgdocdir}/nvme
|
||||
%post
|
||||
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
|
||||
if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then
|
||||
echo $(nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn
|
||||
echo $(nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn
|
||||
fi
|
||||
if [ ! -s %{_sysconfdir}/nvme/hostid ]; then
|
||||
echo $(nvme show-hostnqn | sed 's/^.*uuid://') > %{_sysconfdir}/nvme/hostid
|
||||
fi
|
||||
|
||||
# apply udev and systemd changes that we did
|
||||
if [ $1 -eq 1 ]; then
|
||||
systemctl enable nvmefc-boot-connections
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
udevadm control --reload-rules && udevadm trigger
|
||||
exit 0
|
||||
# apply udev and systemd changes that we did
|
||||
if [ $1 -eq 1 ]; then
|
||||
systemctl enable nvmefc-boot-connections
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
udevadm control --reload-rules && udevadm trigger
|
||||
exit 0
|
||||
fi
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user