Related: #2089106, install smt.state as config file
This commit is contained in:
parent
76aff6a6e8
commit
e87a93d7b1
@ -1,6 +1,6 @@
|
|||||||
Name: powerpc-utils
|
Name: powerpc-utils
|
||||||
Version: 1.3.10
|
Version: 1.3.10
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: PERL-based scripts for maintaining and servicing PowerPC systems
|
Summary: PERL-based scripts for maintaining and servicing PowerPC systems
|
||||||
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@ -95,11 +95,6 @@ rm -f $RPM_BUILD_ROOT%{_sbindir}/snap $RPM_BUILD_ROOT%{_mandir}/man8/snap.8*
|
|||||||
|
|
||||||
%post core
|
%post core
|
||||||
%systemd_post hcn-init.service
|
%systemd_post hcn-init.service
|
||||||
# add default SMT_VALUE=1 in smt.state
|
|
||||||
SMTSTATE=/var/lib/powerpc-utils/smt.state
|
|
||||||
if [ ! -f $SMTSTATE ] ; then
|
|
||||||
echo SMT_VALUE=1 > $SMTSTATE
|
|
||||||
fi
|
|
||||||
# update the smt.state file with current SMT
|
# update the smt.state file with current SMT
|
||||||
/usr/sbin/smtstate --save >/dev/null 2>&1 || :
|
/usr/sbin/smtstate --save >/dev/null 2>&1 || :
|
||||||
|
|
||||||
@ -124,8 +119,8 @@ systemctl enable hcn-init.service >/dev/null 2>&1 || :
|
|||||||
|
|
||||||
%files core
|
%files core
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%dir /var/lib/powerpc-utils
|
%dir %{_localstatedir}/lib/powerpc-utils
|
||||||
%ghost %config(missingok,noreplace) /var/lib/powerpc-utils/smt.state
|
%config(noreplace) %{_localstatedir}/lib/powerpc-utils/smt.state
|
||||||
%{_unitdir}/smtstate.service
|
%{_unitdir}/smtstate.service
|
||||||
%{_unitdir}/smt_off.service
|
%{_unitdir}/smt_off.service
|
||||||
%{_unitdir}/hcn-init.service
|
%{_unitdir}/hcn-init.service
|
||||||
@ -200,6 +195,9 @@ systemctl enable hcn-init.service >/dev/null 2>&1 || :
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 06 2022 Than Ngo <than@redhat.com> - 1.3.10-2
|
||||||
|
- Related: #2089106, install smt.state as config file
|
||||||
|
|
||||||
* Mon Jun 06 2022 Than Ngo <than@redhat.com> - 1.3.10-1
|
* Mon Jun 06 2022 Than Ngo <than@redhat.com> - 1.3.10-1
|
||||||
- Resolves: #1920964, P10 Power Mode Reporting
|
- Resolves: #1920964, P10 Power Mode Reporting
|
||||||
- Resolves: #2050893, Linux Hybrid Network Virtualizatio
|
- Resolves: #2050893, Linux Hybrid Network Virtualizatio
|
||||||
|
Loading…
Reference in New Issue
Block a user