fix smtstate test failure, add default SMT_VALUE=1 in smt.state
This commit is contained in:
parent
76d60a3678
commit
ae2fdaae4d
@ -1,6 +1,6 @@
|
||||
Name: powerpc-utils
|
||||
Version: 1.3.9
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: PERL-based scripts for maintaining and servicing PowerPC systems
|
||||
|
||||
License: GPLv2
|
||||
@ -105,6 +105,11 @@ 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 || :
|
||||
|
||||
@ -205,6 +210,9 @@ systemctl enable hcn-init.service >/dev/null 2>&1 || :
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu May 12 2022 Than Ngo <than@redhat.com> - 1.3.9-6
|
||||
- fix smtstate test failure, add default SMT_VALUE=1 in smt.state
|
||||
|
||||
* Tue Feb 08 2022 Than Ngo <than@redhat.com> - 1.3.9-5
|
||||
- santize devspec output of a newline if one is present
|
||||
- fixed invalid hex number (multipath)
|
||||
|
Loading…
Reference in New Issue
Block a user