|
|
4d456d |
%global debug_package %{nil}
|
|
|
4d456d |
|
|
|
4d456d |
Name: greenboot
|
|
|
9401b0 |
Version: 0.15.4
|
|
|
9401b0 |
Release: 1%{?dist}
|
|
|
4d456d |
Summary: Generic Health Check Framework for systemd
|
|
|
4d456d |
License: LGPLv2+
|
|
|
4d456d |
|
|
|
4d456d |
%global repo_owner fedora-iot
|
|
|
4d456d |
%global repo_name %{name}
|
|
|
4d456d |
%global repo_tag v%{version}
|
|
|
4d456d |
|
|
|
4d456d |
URL: https://github.com/%{repo_owner}/%{repo_name}
|
|
|
4d456d |
Source0: https://github.com/%{repo_owner}/%{repo_name}/archive/%{repo_tag}.tar.gz
|
|
|
4d456d |
|
|
|
4d456d |
ExcludeArch: s390x
|
|
|
4d456d |
BuildRequires: systemd-rpm-macros
|
|
|
4d456d |
%{?systemd_requires}
|
|
|
4d456d |
Requires: systemd
|
|
|
4d456d |
Requires: grub2-tools-minimal
|
|
|
4d456d |
Requires: rpm-ostree
|
|
|
4d456d |
# PAM is required to programatically read motd messages from /etc/motd.d/*
|
|
|
4d456d |
# This causes issues with RHEL-8 as the fix isn't there an el8 is on pam-1.3.x
|
|
|
4d456d |
Requires: pam
|
|
|
4d456d |
# While not strictly necessary to generate the motd, the main use-case of this package is to display it on SSH login
|
|
|
4d456d |
Recommends: openssh
|
|
|
4d456d |
Provides: greenboot-auto-update-fallback
|
|
|
4d456d |
Obsoletes: greenboot-auto-update-fallback <= 0.12.0
|
|
|
4d456d |
Provides: greenboot-grub2
|
|
|
4d456d |
Obsoletes: greenboot-grub2 <= 0.12.0
|
|
|
4d456d |
Provides: greenboot-reboot
|
|
|
4d456d |
Obsoletes: greenboot-reboot <= 0.12.0
|
|
|
4d456d |
Provides: greenboot-status
|
|
|
4d456d |
Obsoletes: greenboot-status <= 0.12.0
|
|
|
4d456d |
Provides: greenboot-rpm-ostree-grub2
|
|
|
4d456d |
Obsoletes: greenboot-rpm-ostree-grub2 <= 0.12.0
|
|
|
4d456d |
|
|
|
4d456d |
%description
|
|
|
4d456d |
%{summary}.
|
|
|
4d456d |
|
|
|
4d456d |
%package default-health-checks
|
|
|
4d456d |
Summary: Series of optional and curated health checks
|
|
|
4d456d |
Requires: %{name} = %{version}-%{release}
|
|
|
4d456d |
Requires: util-linux
|
|
|
4d456d |
Requires: jq
|
|
|
4d456d |
Provides: greenboot-update-platforms-check
|
|
|
4d456d |
Obsoletes: greenboot-update-platforms-check <= 0.12.0
|
|
|
4d456d |
|
|
|
4d456d |
%description default-health-checks
|
|
|
4d456d |
%{summary}.
|
|
|
4d456d |
|
|
|
4d456d |
%prep
|
|
|
4d456d |
%setup -q
|
|
|
4d456d |
|
|
|
4d456d |
%build
|
|
|
4d456d |
|
|
|
4d456d |
%install
|
|
|
4d456d |
mkdir -p %{buildroot}%{_exec_prefix}/lib/motd.d/
|
|
|
4d456d |
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
4d456d |
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/check/required.d
|
|
|
4d456d |
mkdir %{buildroot}%{_sysconfdir}/%{name}/check/wanted.d
|
|
|
4d456d |
mkdir %{buildroot}%{_sysconfdir}/%{name}/green.d
|
|
|
4d456d |
mkdir %{buildroot}%{_sysconfdir}/%{name}/red.d
|
|
|
4d456d |
mkdir -p %{buildroot}%{_prefix}/lib/%{name}/check/required.d
|
|
|
4d456d |
mkdir %{buildroot}%{_prefix}/lib/%{name}/check/wanted.d
|
|
|
4d456d |
mkdir %{buildroot}%{_prefix}/lib/%{name}/green.d
|
|
|
4d456d |
mkdir %{buildroot}%{_prefix}/lib/%{name}/red.d
|
|
|
4d456d |
mkdir -p %{buildroot}%{_unitdir}
|
|
|
4d456d |
mkdir -p %{buildroot}%{_unitdir}/greenboot-healthcheck.service.d
|
|
|
4d456d |
mkdir -p %{buildroot}%{_tmpfilesdir}
|
|
|
4d456d |
install -DpZm 0755 usr/libexec/greenboot/* %{buildroot}%{_libexecdir}/%{name}
|
|
|
4d456d |
install -DpZm 0644 usr/lib/motd.d/boot-status %{buildroot}%{_exec_prefix}/lib/motd.d/boot-status
|
|
|
4d456d |
install -DpZm 0644 usr/lib/systemd/system/greenboot-healthcheck.service.d/10-network-online.conf %{buildroot}%{_unitdir}/greenboot-healthcheck.service.d/10-network-online.conf
|
|
|
4d456d |
install -DpZm 0644 usr/lib/systemd/system/*.target %{buildroot}%{_unitdir}
|
|
|
4d456d |
install -DpZm 0644 usr/lib/systemd/system/*.service %{buildroot}%{_unitdir}
|
|
|
4d456d |
install -DpZm 0644 usr/lib/tmpfiles.d/greenboot-status-motd.conf %{buildroot}%{_tmpfilesdir}/greenboot-status-motd.conf
|
|
|
4d456d |
install -DpZm 0755 usr/lib/greenboot/check/required.d/* %{buildroot}%{_prefix}/lib/%{name}/check/required.d
|
|
|
4d456d |
install -DpZm 0755 usr/lib/greenboot/check/wanted.d/* %{buildroot}%{_prefix}/lib/%{name}/check/wanted.d
|
|
|
9401b0 |
install -DpZm 0644 etc/greenboot/greenboot.conf %{buildroot}%{_sysconfdir}/%{name}/greenboot.conf
|
|
|
4d456d |
|
|
|
4d456d |
%post
|
|
|
4d456d |
%systemd_post greenboot-healthcheck.service
|
|
|
4d456d |
%systemd_post greenboot-loading-message.service
|
|
|
4d456d |
%systemd_post greenboot-task-runner.service
|
|
|
4d456d |
%systemd_post redboot-task-runner.service
|
|
|
4d456d |
%systemd_post redboot.target
|
|
|
4d456d |
%systemd_post greenboot-status.service
|
|
|
4d456d |
%systemd_post greenboot-grub2-set-counter.service
|
|
|
4d456d |
%systemd_post greenboot-grub2-set-success.service
|
|
|
4d456d |
%systemd_post greenboot-rpm-ostree-grub2-check-fallback.service
|
|
|
4d456d |
%systemd_post redboot-auto-reboot.service
|
|
|
4d456d |
|
|
|
4d456d |
%post default-health-checks
|
|
|
4d456d |
%systemd_post greenboot-loading-message.service
|
|
|
4d456d |
|
|
|
4d456d |
%preun
|
|
|
4d456d |
%systemd_preun greenboot-healthcheck.service
|
|
|
4d456d |
%systemd_preun greenboot-loading-message.service
|
|
|
4d456d |
%systemd_preun greenboot-task-runner.service
|
|
|
4d456d |
%systemd_preun redboot-task-runner.service
|
|
|
4d456d |
%systemd_preun redboot.target
|
|
|
4d456d |
%systemd_preun greenboot-status.service
|
|
|
4d456d |
%systemd_preun greenboot-grub2-set-counter.service
|
|
|
4d456d |
%systemd_preun greenboot-grub2-set-success.service
|
|
|
4d456d |
%systemd_preun greenboot-rpm-ostree-grub2-check-fallback.service
|
|
|
4d456d |
|
|
|
4d456d |
%preun default-health-checks
|
|
|
4d456d |
%systemd_preun greenboot-loading-message.service
|
|
|
4d456d |
|
|
|
4d456d |
%postun
|
|
|
4d456d |
%systemd_postun greenboot-healthcheck.service
|
|
|
4d456d |
%systemd_postun greenboot-loading-message.service
|
|
|
4d456d |
%systemd_postun greenboot-task-runner.service
|
|
|
4d456d |
%systemd_postun redboot-task-runner.service
|
|
|
4d456d |
%systemd_postun redboot.target
|
|
|
4d456d |
%systemd_postun greenboot-status.service
|
|
|
4d456d |
%systemd_postun greenboot-grub2-set-counter.service
|
|
|
4d456d |
%systemd_postun greenboot-grub2-set-success.service
|
|
|
4d456d |
%systemd_postun greenboot-rpm-ostree-grub2-check-fallback.service
|
|
|
4d456d |
|
|
|
4d456d |
%postun default-health-checks
|
|
|
4d456d |
%systemd_postun greenboot-loading-message.service
|
|
|
4d456d |
|
|
|
4d456d |
%files
|
|
|
4d456d |
%doc README.md
|
|
|
4d456d |
%license LICENSE
|
|
|
4d456d |
%dir %{_libexecdir}/%{name}
|
|
|
4d456d |
%{_libexecdir}/%{name}/%{name}
|
|
|
4d456d |
%{_libexecdir}/%{name}/greenboot-loading-message
|
|
|
4d456d |
%{_unitdir}/greenboot-healthcheck.service
|
|
|
4d456d |
%{_unitdir}/greenboot-loading-message.service
|
|
|
4d456d |
%{_unitdir}/greenboot-task-runner.service
|
|
|
4d456d |
%{_unitdir}/redboot-task-runner.service
|
|
|
4d456d |
%{_unitdir}/redboot.target
|
|
|
4d456d |
%dir %{_prefix}/lib/%{name}
|
|
|
4d456d |
%dir %{_prefix}/lib/%{name}/check
|
|
|
4d456d |
%dir %{_prefix}/lib/%{name}/check/required.d
|
|
|
4d456d |
%{_prefix}/lib/%{name}/check/required.d/00_required_scripts_start.sh
|
|
|
4d456d |
%dir %{_prefix}/lib/%{name}/check/wanted.d
|
|
|
4d456d |
%{_prefix}/lib/%{name}/check/wanted.d/00_wanted_scripts_start.sh
|
|
|
4d456d |
%dir %{_prefix}/lib/%{name}/green.d
|
|
|
4d456d |
%dir %{_prefix}/lib/%{name}/red.d
|
|
|
4d456d |
%dir %{_sysconfdir}/%{name}
|
|
|
4d456d |
%dir %{_sysconfdir}/%{name}/check
|
|
|
4d456d |
%dir %{_sysconfdir}/%{name}/check/required.d
|
|
|
4d456d |
%dir %{_sysconfdir}/%{name}/check/wanted.d
|
|
|
4d456d |
%dir %{_sysconfdir}/%{name}/green.d
|
|
|
4d456d |
%dir %{_sysconfdir}/%{name}/red.d
|
|
|
4d456d |
%{_exec_prefix}/lib/motd.d/boot-status
|
|
|
4d456d |
%{_libexecdir}/%{name}/greenboot-status
|
|
|
4d456d |
%{_tmpfilesdir}/greenboot-status-motd.conf
|
|
|
4d456d |
%{_unitdir}/greenboot-status.service
|
|
|
4d456d |
%{_libexecdir}/%{name}/greenboot-grub2-set-counter
|
|
|
4d456d |
%{_unitdir}/greenboot-grub2-set-success.service
|
|
|
4d456d |
%{_unitdir}/greenboot-grub2-set-counter.service
|
|
|
4d456d |
%{_libexecdir}/%{name}/greenboot-rpm-ostree-grub2-check-fallback
|
|
|
4d456d |
%{_unitdir}/greenboot-rpm-ostree-grub2-check-fallback.service
|
|
|
4d456d |
%{_libexecdir}/%{name}/redboot-auto-reboot
|
|
|
4d456d |
%{_unitdir}/redboot-auto-reboot.service
|
|
|
9401b0 |
%{_sysconfdir}/%{name}/greenboot.conf
|
|
|
4d456d |
|
|
|
4d456d |
%files default-health-checks
|
|
|
4d456d |
%{_prefix}/lib/%{name}/check/required.d/01_repository_dns_check.sh
|
|
|
4d456d |
%{_prefix}/lib/%{name}/check/wanted.d/01_update_platforms_check.sh
|
|
|
4d456d |
%{_unitdir}/greenboot-healthcheck.service.d/10-network-online.conf
|
|
|
4d456d |
%{_prefix}/lib/%{name}/check/required.d/02_watchdog.sh
|
|
|
4d456d |
|
|
|
4d456d |
%changelog
|
|
|
9401b0 |
* Tue Feb 21 2023 Paul Whalen <pwhalen@fedoraproject.org> - 0.15.4-1
|
|
|
9401b0 |
- Update to 0.15.4
|
|
|
9401b0 |
- Resolves: rhbz#2170924
|
|
|
9401b0 |
|
|
|
9401b0 |
* Tue Nov 29 2022 Paul Whalen <pwhalen@fedoraproject.org> - 0.15.3-1
|
|
|
9401b0 |
- The 0.15.3 release
|
|
|
9401b0 |
- revert service-monitor
|
|
|
9401b0 |
|
|
|
9401b0 |
* Thu Sep 08 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 0.15.1-3
|
|
|
9401b0 |
- Avoid running health checks if conditions aren't met
|
|
|
9401b0 |
|
|
|
9401b0 |
* Wed Aug 31 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 0.15.1-2
|
|
|
9401b0 |
- disable DefaultDependencies to fix cycle error
|
|
|
9401b0 |
|
|
|
9401b0 |
* Tue Aug 09 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 0.15.1-1
|
|
|
9401b0 |
- Add conf during installation
|
|
|
9401b0 |
|
|
|
9401b0 |
* Thu Jul 21 2022 Sayan Paul <saypaul@fedoraproject.org> - 0.15.0-1
|
|
|
9401b0 |
- The 0.15.0 release
|
|
|
9401b0 |
- Add service-monitor
|
|
|
9401b0 |
- Resolves: rhbz#2053469
|
|
|
9401b0 |
|
|
|
4d456d |
* Tue Jan 18 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 0.14.0-3
|
|
|
4d456d |
- Obsolete greenboot-status
|
|
|
4d456d |
|
|
|
4d456d |
* Wed Dec 15 2021 Peter Robinson <pbrobinson@redhat.com> - 0.14.0-2
|
|
|
4d456d |
- Fix systemd version
|
|
|
4d456d |
|
|
|
4d456d |
* Thu Nov 18 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.14.0-1
|
|
|
4d456d |
- Release 0.14.0 (Peter Robinson)
|
|
|
4d456d |
- Updated testing documentation (Jose Noguera)
|
|
|
4d456d |
- README updated with TOC and improved explanations (Jose Noguera)
|
|
|
4d456d |
- Add watchdog-triggered boot check #2 (Jose Noguera)
|
|
|
4d456d |
- Update specfile and README to reflect changes in subpackage layout. (Jose Noguera)
|
|
|
4d456d |
- Ensure all required health checks are run #52 (Jose Noguera)
|
|
|
4d456d |
|
|
|
4d456d |
* Wed Nov 10 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.13.1-1
|
|
|
4d456d |
- tag 0.31.1 (Peter Robinson)
|
|
|
4d456d |
|
|
|
4d456d |
* Mon Jul 26 2021 Jose Noguera <jnoguera@redhat.com> - 0.12.0-1
|
|
|
4d456d |
- Update to 0.12.0
|
|
|
4d456d |
- Add ability to configure maximum number of boot attempts via env var and config file.
|
|
|
4d456d |
- Add How does it work section to README.
|
|
|
4d456d |
- Add CI via GitHub Actions and unit testing with BATS.
|
|
|
4d456d |
- Add update platforms DNS resolutiona and connection checker as health checks out of the box
|
|
|
4d456d |
|
|
|
4d456d |
* Sat Jan 16 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 0.11.0-2
|
|
|
4d456d |
- Make arch specific due to grub availability on s390x
|
|
|
4d456d |
- Resolves: rhbz#1915241
|
|
|
4d456d |
|
|
|
4d456d |
* Thu Aug 20 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 0.11-1
|
|
|
4d456d |
- Update to 0.11.0
|
|
|
4d456d |
- Resolves: rhbz#1815140
|
|
|
4d456d |
|
|
|
4d456d |
* Thu Jul 23 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 0.10.3-5
|
|
|
4d456d |
- Make package arch specific to work around lack of grub2 on s390x
|
|
|
4d456d |
- Resolves: rhbz#1815140
|
|
|
4d456d |
|
|
|
4d456d |
* Thu Jun 11 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 0.10.3-3
|
|
|
4d456d |
- Make motd status page optional
|
|
|
4d456d |
- Resolves: rhbz#1815140
|
|
|
4d456d |
|
|
|
4d456d |
* Thu Jun 11 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 0.10.3-2
|
|
|
4d456d |
- Update changelog
|
|
|
4d456d |
- Resolves: rhbz#1815140
|
|
|
4d456d |
|
|
|
4d456d |
* Fri Jun 05 2020 Christian Glombek <lorbus@fedoraproject.org> - 0.10.3-1
|
|
|
4d456d |
- Update to 0.10.3
|
|
|
4d456d |
|
|
|
4d456d |
* Wed Jun 03 2020 Christian Glombek <lorbus@fedoraproject.org> - 0.10.2-1
|
|
|
4d456d |
- Update to 0.10.2
|
|
|
4d456d |
|
|
|
4d456d |
* Wed May 27 2020 Christian Glombek <lorbus@fedoraproject.org> - 0.10-1
|
|
|
4d456d |
- Update to 0.10
|
|
|
4d456d |
|
|
|
4d456d |
* Mon May 04 2020 Christian Glombek <lorbus@fedoraproject.org> - 0.9-2
|
|
|
4d456d |
- Added missing requires to grub2 and rpm-ostree-grub2 packages
|
|
|
4d456d |
- Run %%setup quietly
|
|
|
4d456d |
|
|
|
4d456d |
* Fri Apr 03 2020 Christian Glombek <lorbus@fedoraproject.org> - 0.9-1
|
|
|
4d456d |
- Update to v0.9
|
|
|
4d456d |
- Update repo_owner
|
|
|
4d456d |
|
|
|
4d456d |
* Wed Feb 05 2020 Christian Glombek <lorbus@fedoraproject.org> - 0.8-1
|
|
|
4d456d |
- Update to v0.8
|
|
|
4d456d |
- Add guard against bootlooping in redboot-auto-reboot.service
|
|
|
4d456d |
|
|
|
4d456d |
* Mon Apr 01 2019 Christian Glombek <lorbus@fedoraproject.org> - 0.7-1
|
|
|
4d456d |
- Update to v0.7
|
|
|
4d456d |
- Rename ostree-grub2 subpackage to rpm-ostree-grub2 to be more explicit
|
|
|
4d456d |
- Add auto-update-fallback meta subpackage
|
|
|
4d456d |
|
|
|
4d456d |
* Wed Feb 13 2019 Christian Glombek <lorbus@fedoraproject.org> - 0.6-1
|
|
|
4d456d |
- Update to v0.6
|
|
|
4d456d |
- Integrate with systemd's boot-complete.target
|
|
|
4d456d |
- Rewrite motd sub-package and rename to status
|
|
|
4d456d |
|
|
|
4d456d |
* Fri Oct 19 2018 Christian Glombek <lorbus@fedoraproject.org> - 0.5-1
|
|
|
4d456d |
- Update to v0.5
|
|
|
4d456d |
|
|
|
4d456d |
* Tue Oct 02 2018 Christian Glombek <lorbus@fedoraproject.org> - 0.4-2
|
|
|
4d456d |
- Spec Review
|
|
|
4d456d |
|
|
|
4d456d |
* Thu Jun 14 2018 Christian Glombek <lorbus@fedoraproject.org> - 0.4-1
|
|
|
4d456d |
- Initial Package
|