Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1715005 Details for
Bug 1872427
Review Request: ec2-hibinit-agent - support for hibernation for Amazon ec2
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh109 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
Migrated Products
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
Spec file that include changes for Fedora and Redhat.
ec2-hibinit-agent.spec (text/x-matlab), 6.02 KB, created by
Mohamed Aboubakr
on 2020-09-16 00:36:56 UTC
(
hide
)
Description:
Spec file that include changes for Fedora and Redhat.
Filename:
MIME Type:
Creator:
Mohamed Aboubakr
Created:
2020-09-16 00:36:56 UTC
Size:
6.02 KB
patch
obsolete
>%global modulenames ec2hibernatepolicy >%global selinuxtype targeted >%global moduletype services > >%global active_tuned_profile $(cat %{_sysconfdir}/tuned/active_profile) > ># Usage: _format var format ># Expand 'modulenames' into various formats as needed ># Format must contain '$x' somewhere to do anything useful >%global _format() export %1=""; for x in %{modulenames}; do %1+=%2; %1+=" "; done; > ># Relabel files >%global relabel_files() \ # ADD files in *.fc file > > >%global debug_package %{nil} > >Name: ec2-hibinit-agent >Version: 1.0.3 >Release: 1%{?dist} >Summary: Hibernation setup utility for Amazon EC2 > >Group: System Environment/Daemons >License: Apache 2.0 ># TODO : Add full git hub URL that point to tar.gz file https://fedoraproject.org/wiki/Packaging:SourceURL?rd=Packaging/SourceURL >Source0: ec2-hibinit-agent-%{version}.tar.gz >BuildArch: x86_64 >BuildRequires: systemd-rpm-macros python3 python3-devel systemd acpid > >Requires: acpid grubby >%description >An EC2 agent that creates a setup for instance hibernation > >%prep >%setup -q -n ec2-hibinit-agent-%{version} > >%build >%py3_build > >%install >%py3_install > >mkdir -p "%{buildroot}%{_unitdir}" >mkdir -p %{buildroot}%{_sysconfdir}/acpi/events >mkdir -p %{buildroot}%{_localstatedir}/lib/hibinit-agent >mkdir -p %{buildroot}%{_sysconfdir}/acpi/actions > >install -p -m 644 "%{_builddir}/%{name}-%{version}/hibinit-agent.service" %{buildroot}%{_unitdir} >install -p -m 644 "%{_builddir}/%{name}-%{version}/acpid/acpid.sleep.conf" %{buildroot}%{_sysconfdir}/acpi/events/sleepconf > >#Redhat or Fedora but Not Amazon >%if ( 0%{?rhel:1} == 1 || 0%{?fedora:1} == 1 ) && 0%{?amzn:1} == 0 > >mkdir -p %{buildroot}%{_prefix}/lib/systemd/logind.conf.d >mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-sleep > >install -p -m 644 "%{_builddir}/%{name}-%{version}/00-hibinit-agent.conf" %{buildroot}%{_prefix}/lib/systemd/logind.conf.d/00-hibinit-agent.conf >install -p -m 755 "%{_builddir}/%{name}-%{version}/acpid/rhel/acpid.sleep.sh" %{buildroot}%{_sysconfdir}/acpi/actions/sleep.sh >install -p -m 755 "%{_builddir}/%{name}-%{version}/sleep-handler.sh" %{buildroot}%{_prefix}/lib/systemd/system-sleep/sleep-handler.sh > >#Disable transparent huge page >mkdir -p %{buildroot}%{_sysconfdir}/tuned/nothp_profile >install -p -m 755 "%{_builddir}/%{name}-%{version}/tuned.conf" %{buildroot}%{_sysconfdir}/tuned/nothp_profile/tuned.conf > ># Install policy modules >%_format MODULES $x.pp.bz2 >install -d %{buildroot}%{_datadir}/selinux/packages >install -m 0644 $MODULES \ > %{buildroot}%{_datadir}/selinux/packages > >%endif > >%if 0%{?amzn} >install -p -m 755 "%{_builddir}/%{name}-%{version}/acpid/amzn/acpid.sleep.sh" %{buildroot}%{_sysconfdir}/acpi/actions/sleep.sh >%endif > > >%files >%doc README.md >%license LICENSE.txt >%{_sysconfdir}/hibinit-config.cfg >%{_unitdir}/hibinit-agent.service >%{_bindir}/hibinit-agent >%dir %{_sysconfdir}/acpi >%dir %{_sysconfdir}/acpi/events >%dir %{_sysconfdir}/acpi/actions >%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/sleepconf >%config(noreplace) %attr(0755,root,root) %{_sysconfdir}/acpi/actions/sleep.sh >%{python3_sitelib}/ec2_hibinit_agent-%{version}-py3.*.egg-info/* >%{python3_sitelib}/ec2_hibinit_agent-%{version}-py3.*.egg-info/._SOURCES.txt >%{python3_sitelib}/ec2_hibinit_agent-%{version}-py3.*.egg-info/._dependency_links.txt >%dir %{_localstatedir}/lib/hibinit-agent >%ghost %attr(0600,root,root) %{_localstatedir}/lib/hibinit-agent/hibernation-enabled > >#Redhat or Fedora but Not Amazon >%if ( 0%{?rhel:1} == 1 || 0%{?fedora:1} == 1 ) && 0%{?amzn:1} == 0 > >%dir %{_prefix}/lib/systemd/logind.conf.d >%dir %{_prefix}/lib/systemd/system-sleep > >%dir %{_sysconfdir}/tuned/nothp_profile >%config(noreplace) %attr(0755,root,root) %{_sysconfdir}/tuned/nothp_profile/tuned.conf > >%config(noreplace) %attr(0755,root,root) %{_prefix}/lib/systemd/system-sleep/sleep-handler.sh >%config(noreplace) %attr(0644,root,root) %{_prefix}/lib/systemd/logind.conf.d/00-hibinit-agent.conf >%attr(0644,root,root) %{_datadir}/selinux/packages/*.pp.bz2 > >%endif > ># For Amazon Linux >%if 0%{?amzn} > >%clean >rm -rf $RPM_BUILD_ROOT > >%endif > > >%post >%systemd_post hibinit-agent.service > >#Redhat or Fedora but Not amazon >%if ( 0%{?rhel:1} == 1 || 0%{?fedora:1} == 1 ) && 0%{?amzn:1} == 0 > ># ># Install all modules in a single transaction ># >%_format MODULES %{_datadir}/selinux/packages/$x.pp.bz2 >%{_sbindir}/semodule -n -s %{selinuxtype} -i $MODULES >if %{_sbindir}/selinuxenabled ; then > %{_sbindir}/load_policy > %relabel_files >fi > > ># ># Disable THP by switching to nothp_profile profile ># >sed -i'' "s/^[#]*\s*include=.*/include=%{active_tuned_profile}/" %{_sysconfdir}/tuned/nothp_profile/tuned.conf >tuned-adm profile nothp_profile > >%endif > > >%preun >%systemd_preun hibinit-agent.service > > >#Redhat or Fedora but Not Amazon >%if ( 0%{?rhel:1} == 1 || 0%{?fedora:1} == 1 ) && 0%{?amzn:1} == 0 > ># ># Enable THP by switching to nothp_profile profile ># >tuned-adm profile $(sed -n 's/^include=//p' %{_sysconfdir}/tuned/nothp_profile/tuned.conf) > >%endif > > >%postun >%systemd_postun_with_restart hibinit-agent.service > >#Redhat or Fedora but Not Amazon >%if ( 0%{?rhel:1} == 1 || 0%{?fedora:1} == 1 ) && 0%{?amzn:1} == 0 >if [ $1 -eq 0 ]; then > %{_sbindir}/semodule -n -r %{modulenames} &> /dev/null || : > if %{_sbindir}/selinuxenabled ; then > %{_sbindir}/load_policy > %relabel_files > fi >fi > > >%endif > >%changelog >* Thu Aug 13 2020 Mohamed Aboubakr <mabouba@amazon.com> - 1.0.3-1 >- Support Redhat and Fedora by adding sepolicy >- Ignore handle hibernation in systemd configuration > >* Fri Jan 24 2020 Frederick Lefebvre <fredlef@amazon.com> - 1.0.1-2 >- Restart the hibinit-agent service on upgrade > >* Thu Jan 23 2020 Frederick Lefebvre <fredlef@amazon.com> - 1.0.1-1 >- Added IMDSv2 support >- Renamed spec file to match the actual package name > >* Fri Jun 14 2019 Anchal Agarwal <anchalag@amazon.com> - 1.0.0-4 >- Added hibernation re-try logic in case of hibernation failure > >* Wed Nov 07 2018 Matt Dees <mattdees@amazon.com> - 1.0.0-2 >- Clean up hibernation configured check > >* Wed Oct 31 2018 Anchal Agarwal <anchalag@amazon.com> - 1.0.0-1 >- Initial build
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1872427
: 1715005