Resolves: #2024038 - HNV interface fails to configure when added in lpar shutdown state

This commit is contained in:
Than Ngo 2021-12-07 11:52:09 +01:00
parent ae1cf123c9
commit 1df5dd4b8c

View File

@ -1,6 +1,6 @@
Name: powerpc-utils Name: powerpc-utils
Version: 1.3.9 Version: 1.3.9
Release: 4%{?dist} Release: 5%{?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
@ -103,26 +103,20 @@ ln -s serv_config.8 %{buildroot}%{_mandir}/man8/uspchrp.8
rm -f $RPM_BUILD_ROOT%{_sbindir}/snap $RPM_BUILD_ROOT%{_mandir}/man8/snap.8* rm -f $RPM_BUILD_ROOT%{_sbindir}/snap $RPM_BUILD_ROOT%{_mandir}/man8/snap.8*
%post core %post core
systemctl daemon-reload >/dev/null 2>&1 || : %systemd_post hcn-init.service
systemctl start hcn-init.service >/dev/null 2>&1 || :
systemctl enable hcn-init.service >/dev/null 2>&1 || :
# 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 || :
%preun core %preun core
svc=$(systemctl list-units -la | grep -Fq smtstate.service; echo $?) %systemd_preun smtstate.service
if [ "$svc" = "0" ]; then %systemd_preun hcn-init.service
systemctl stop smtstate.service >/dev/null 2>&1 || :
systemctl disable smtstate.service >/dev/null 2>&1 || :
fi
if systemctl is-enabled hcn-init.service |grep -q "enabled"; then
systemctl stop hcn-init.service >/dev/null 2>&1 || :
systemctl disable hcn-init.service >/dev/null 2>&1 || :
fi
%postun core %postun core
systemctl daemon-reload >/dev/null 2>&1 || : %systemd_postun_with_restart smtstate.service
%systemd_postun_with_restart hcn-init.service
%posttrans core
systemctl enable hcn-init.service >/dev/null 2>&1 || :
%files %files
# PERL-based scripts for maintaining and servicing PowerPC systems # PERL-based scripts for maintaining and servicing PowerPC systems
@ -210,6 +204,9 @@ systemctl daemon-reload >/dev/null 2>&1 || :
%changelog %changelog
* Tue Dec 07 2021 Than Ngo <than@redhat.com> - 1.3.9-5
- Resolves: #2024038 - HNV interface fails to configure when added in lpar shutdown state
* Thu Nov 11 2021 Than Ngo <than@redhat.com> - 1.3.9-4 * Thu Nov 11 2021 Than Ngo <than@redhat.com> - 1.3.9-4
- enable support vnic as backend for HNV interface - enable support vnic as backend for HNV interface
- fixed hexdump format - fixed hexdump format