Related: #2089106, install smt.state as config file
This commit is contained in:
parent
76aff6a6e8
commit
e87a93d7b1
@ -1,6 +1,6 @@
|
||||
Name: powerpc-utils
|
||||
Version: 1.3.10
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: PERL-based scripts for maintaining and servicing PowerPC systems
|
||||
|
||||
License: GPLv2
|
||||
@ -95,11 +95,6 @@ rm -f $RPM_BUILD_ROOT%{_sbindir}/snap $RPM_BUILD_ROOT%{_mandir}/man8/snap.8*
|
||||
|
||||
%post core
|
||||
%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
|
||||
/usr/sbin/smtstate --save >/dev/null 2>&1 || :
|
||||
|
||||
@ -124,8 +119,8 @@ systemctl enable hcn-init.service >/dev/null 2>&1 || :
|
||||
|
||||
%files core
|
||||
%license COPYING
|
||||
%dir /var/lib/powerpc-utils
|
||||
%ghost %config(missingok,noreplace) /var/lib/powerpc-utils/smt.state
|
||||
%dir %{_localstatedir}/lib/powerpc-utils
|
||||
%config(noreplace) %{_localstatedir}/lib/powerpc-utils/smt.state
|
||||
%{_unitdir}/smtstate.service
|
||||
%{_unitdir}/smt_off.service
|
||||
%{_unitdir}/hcn-init.service
|
||||
@ -200,6 +195,9 @@ systemctl enable hcn-init.service >/dev/null 2>&1 || :
|
||||
|
||||
|
||||
%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
|
||||
- Resolves: #1920964, P10 Power Mode Reporting
|
||||
- Resolves: #2050893, Linux Hybrid Network Virtualizatio
|
||||
|
Loading…
Reference in New Issue
Block a user