Skip to content

Commit

Permalink
fix default-config
Browse files Browse the repository at this point in the history
add sos-nvidia.conf to installation
  • Loading branch information
filanov committed Jan 14, 2025
1 parent fbac8e0 commit d3014d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion debian/install
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
sos.conf etc/sos/
sos-mlx-cloud-verification.conf etc/sos/
sos-mlx-cloud-verification.conf etc/sos/
sos-nvidia.conf etc/sos/
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ override_dh_install:
# Move config file to the right location.
mv debian/doca-sosreport/usr/config/sos.conf debian/doca-sosreport/etc/sos/sos.conf
mv debian/doca-sosreport/usr/config/sos-mlx-cloud-verification.conf debian/doca-sosreport/etc/sos/sos-mlx-cloud-verification.conf
mv debian/doca-sosreport/usr/config/sos-nvidia.conf debian/doca-sosreport/etc/sos/sos-nvidia.conf
# Remove unnecessary unused dir.
rm -rf debian/doca-sosreport/usr/config

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
('share/licenses/doca-sosreport', ['LICENSE']),
('share/doc/doca-sosreport', ['AUTHORS', 'README.md']),
('config', ['sos.conf', 'sos-mlx-cloud-verification.conf',
'tmpfiles/tmpfilesd-sos-rh.conf'])
'sos-nvidia.conf', 'tmpfiles/tmpfilesd-sos-rh.conf'])
],
packages=find_packages(include=['sos', 'sos.*'])
)
Expand Down
2 changes: 2 additions & 0 deletions sos.spec
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ install -d -m 755 %{buildroot}%{_sysconfdir}/%{sosname}/extras.d
install -d -m 755 %{buildroot}%{_tmpfilesdir}
install -m 644 %{sosname}.conf %{buildroot}%{_sysconfdir}/%{sosname}/%{sosname}.conf
install -m 644 sos-mlx-cloud-verification.conf %{buildroot}%{_sysconfdir}/%{sosname}/sos-mlx-cloud-verification.conf
install -m 644 sos-nvidia.conf %{buildroot}%{_sysconfdir}/%{sosname}/sos-nvidia.conf
install -m 644 tmpfiles/tmpfilesd-sos-rh.conf %{buildroot}%{_tmpfilesdir}/%{sosname}.conf

rm -rf %{buildroot}/usr/config/
Expand Down Expand Up @@ -94,6 +95,7 @@ rm -rf %{buildroot}/usr/config/
%license LICENSE
%config(noreplace) %{_sysconfdir}/sos/sos.conf
%config(noreplace) %{_sysconfdir}/sos/sos-mlx-cloud-verification.conf
%config(noreplace) %{_sysconfdir}/sos/sos-nvidia.conf

%changelog
* Tue Oct 15 2024 Pavel Moravec <pmoravec@redhat.com> = 4.8.1
Expand Down

0 comments on commit d3014d0

Please sign in to comment.