From 0c696a3680d468b0aa849120889555f0e1943a58bda769f4f4e749bfd60fd785 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 28 Jan 2025 15:21:23 +0000 Subject: [PATCH 1/2] - Update to version 3.0+git20250128.8fa577c: * Import version 3.0 based on sd-varlink - Update to version 3.0+git20250127.73667d7: * rebootmgrctl: implement verbose dump-config verb * Fix search path for vendor config file * Add CI with openSUSE container * Add new methods and use UID auth - Add timezone to BuildRequires for test suite - Update to version 3.0+git20250114.f74a9d5: * Add bash-completion for rebootmgrctl - Update to version 3.0+git20241219.7166827: * Remove left overs from dbus related manual page * Use int64 to parse JSON for time_t * Set varlink info * Move announce_ready() call to a later place * Require libeconf 0.7.5 * Free event loop in destroy context. * Add missing error reply * Remove unused log_type variable * Add internal error to varlink interface * Move varlink definition into own file * Update manual pages OBS-URL: https://build.opensuse.org/package/show/devel:microos/rebootmgr?expand=0&rev=22 --- .gitattributes | 23 ++ .gitignore | 1 + _service | 15 ++ _servicedata | 5 + rebootmgr-2.4+git20240524.30e5383.tar.xz | 3 + rebootmgr-2.6+git20241108.fc0c103.tar.xz | 3 + rebootmgr-3.0+git20250128.8fa577c.tar.xz | 3 + rebootmgr.changes | 312 +++++++++++++++++++++++ rebootmgr.spec | 82 ++++++ 9 files changed, 447 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 rebootmgr-2.4+git20240524.30e5383.tar.xz create mode 100644 rebootmgr-2.6+git20241108.fc0c103.tar.xz create mode 100644 rebootmgr-3.0+git20250128.8fa577c.tar.xz create mode 100644 rebootmgr.changes create mode 100644 rebootmgr.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..a827290 --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + 3.0 + 3.0+git%cd.%h + https://github.com/SUSE/rebootmgr.git + master + git + enable + + + xz + *.tar + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..d341bd7 --- /dev/null +++ b/_servicedata @@ -0,0 +1,5 @@ + + + https://github.com/SUSE/rebootmgr.git + 8fa577c713e7567795904904d9d30a259b6d5685 + \ No newline at end of file diff --git a/rebootmgr-2.4+git20240524.30e5383.tar.xz b/rebootmgr-2.4+git20240524.30e5383.tar.xz new file mode 100644 index 0000000..003a475 --- /dev/null +++ b/rebootmgr-2.4+git20240524.30e5383.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2246fe69ff25a570a35f53f4b7e928b20fba55a058429d2240e34a6c5067b19 +size 65604 diff --git a/rebootmgr-2.6+git20241108.fc0c103.tar.xz b/rebootmgr-2.6+git20241108.fc0c103.tar.xz new file mode 100644 index 0000000..1e5f417 --- /dev/null +++ b/rebootmgr-2.6+git20241108.fc0c103.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddcac9ed2ab898422ffbde558f51c4f74d456d5d2bd0a14ad5d1f57dc840cbab +size 41368 diff --git a/rebootmgr-3.0+git20250128.8fa577c.tar.xz b/rebootmgr-3.0+git20250128.8fa577c.tar.xz new file mode 100644 index 0000000..0427b53 --- /dev/null +++ b/rebootmgr-3.0+git20250128.8fa577c.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce896cf9a46dc75c3906eb70762174e78395aa25c97f43fb42c448574a8a7e31 +size 43312 diff --git a/rebootmgr.changes b/rebootmgr.changes new file mode 100644 index 0000000..8d873fa --- /dev/null +++ b/rebootmgr.changes @@ -0,0 +1,312 @@ +------------------------------------------------------------------- +Tue Jan 28 15:05:30 UTC 2025 - kukuk@suse.com + +- Update to version 3.0+git20250128.8fa577c: + * Import version 3.0 based on sd-varlink + +------------------------------------------------------------------- +Mon Jan 27 13:25:24 UTC 2025 - kukuk@suse.com + +- Update to version 3.0+git20250127.73667d7: + * rebootmgrctl: implement verbose dump-config verb + * Fix search path for vendor config file + * Add CI with openSUSE container + * Add new methods and use UID auth +- Add timezone to BuildRequires for test suite + +------------------------------------------------------------------- +Wed Jan 15 11:05:37 UTC 2025 - kukuk@suse.com + +- Update to version 3.0+git20250114.f74a9d5: + * Add bash-completion for rebootmgrctl + +------------------------------------------------------------------- +Thu Dec 19 15:28:20 UTC 2024 - kukuk@suse.com + +- Update to version 3.0+git20241219.7166827: + * Remove left overs from dbus related manual page + * Use int64 to parse JSON for time_t + * Set varlink info + * Move announce_ready() call to a later place + * Require libeconf 0.7.5 + * Free event loop in destroy context. + * Add missing error reply + * Remove unused log_type variable + * Add internal error to varlink interface + * Move varlink definition into own file + * Update manual pages + +------------------------------------------------------------------- +Mon Nov 11 06:03:16 UTC 2024 - Thorsten Kukuk + +- Add compatibility symlink for rebootmgrctl to sbin + +------------------------------------------------------------------- +Fri Nov 08 09:49:55 UTC 2024 - kukuk@suse.com + +- Update to version 2.6+git20241108.fc0c103: + * Fix installation of .so man pages + * Rework manpage generation + * Switch from configure.ac to meson + * Document that timezones are not supported + * Release version 2.5 + +------------------------------------------------------------------- +Fri May 24 11:56:30 UTC 2024 - kukuk@suse.com + +- Update to version 2.4+git20240524.30e5383: + * Move tmpfiles.d/soft-reboot-cleanup.conf to aaa_base + +------------------------------------------------------------------- +Fri May 03 13:10:33 UTC 2024 - kukuk@suse.com + +- Remove rcrebootmgr symlink +- Update to version 2.4+git20240503.5b98913: + * Don't generate html documentation anymore + * Fix manual page dependencies for parallel build + * Update configure.ac + * Fix soft-reboot detection in forced mode + +------------------------------------------------------------------- +Fri Mar 15 12:34:51 UTC 2024 - Thorsten Kukuk + +- Update to version 2.4 + - Make sure systemctl reboot will not switch to soft-reboot + automatically + +------------------------------------------------------------------- +Fri Mar 8 09:51:29 UTC 2024 - Thorsten Kukuk + +- Update to version 2.3 + - rebootmgrd: add verbose mode + - Enable verbose mode in rebootmgr.service by default + +------------------------------------------------------------------- +Wed Feb 7 13:07:11 UTC 2024 - Thorsten Kukuk + +- Update to version 2.2 + - Make sure /run/reboot-needed get's deleted after a soft-reboot + +------------------------------------------------------------------- +Fri Aug 18 13:46:41 UTC 2023 - Thorsten Kukuk + +- Update to version 2.1 + - Support systemctl soft-reboot (systemd >= v254) + +------------------------------------------------------------------- +Fri Aug 11 08:30:08 UTC 2023 - Avinesh Kumar + +- Typo fix in spec description + +------------------------------------------------------------------- +Wed Oct 26 12:25:06 UTC 2022 - Thorsten Kukuk + +- Update to version 2.0 + - Remove outdated etcd code + - Fix issue#10: + Reboots happen at the first moment of the maintenance window + +------------------------------------------------------------------- +Wed Mar 10 15:17:01 UTC 2021 - Thorsten Kukuk + +- Update to version 1.3.1 + - Move all dbus config files to /usr/share/dbus-1 + +------------------------------------------------------------------- +Wed Jul 1 13:04:21 UTC 2020 - Thorsten Kukuk + +- Update to version 1.3 + - Fix documentation of is-active return value [bsc#1173484] + - Fix crash if rebootmgrd is already running + - Fix systemctl restart; also removes KillMode=none from systemd + service file [bsc#1186510] + +------------------------------------------------------------------- +Mon Jun 8 14:20:25 UTC 2020 - Thorsten Kukuk + +- Update to version 1.2 + - depend on dbus and not network as we disabled etcd support + [bsc#1172518] + +------------------------------------------------------------------- +Thu Apr 30 10:31:48 UTC 2020 - Thorsten Kukuk + +- Update to version 1.1 + - fix systemd and tmpfiles.d directory path + +------------------------------------------------------------------- +Thu Apr 30 10:27:37 UTC 2020 - Thorsten Kukuk + +- Use official tar archive + +------------------------------------------------------------------- +Mon Apr 27 10:43:58 UTC 2020 - Thorsten Kukuk + +- Adjust BuildRequires + +------------------------------------------------------------------- +Mon Apr 27 09:51:18 UTC 2020 - Thorsten Kukuk + +- Update to version 1.0 + - Rewrite rebootmgrd to not depend on glib and dbus-glib + +------------------------------------------------------------------- +Wed Jan 29 12:40:26 UTC 2020 - Thorsten Kukuk + +- Disable ectd support (no current etcd C-library available) + +------------------------------------------------------------------- +Wed Nov 27 13:59:47 UTC 2019 - Ignaz Forster + +- Fix %posttrans script returning an error code + +------------------------------------------------------------------- +Mon Nov 4 15:32:45 CET 2019 - kukuk@suse.de + +- Update to version 0.20.1 + - added a memory allocation check + +------------------------------------------------------------------- +Mon Sep 9 10:40:46 CEST 2019 - kukuk@suse.de + +- Fix %config for backward compatibility + +------------------------------------------------------------------- +Fri Sep 6 13:03:15 CEST 2019 - kukuk@suse.de + +- Update to version 0.20 + - add support to write changes back to /etc/rebootmgr.conf + - fix compilation with glibc 2.30 [bsc#1197850] + +------------------------------------------------------------------- +Wed Aug 28 12:56:07 CEST 2019 - kukuk@suse.de + +- Preserve /etc/rebootmgr.conf if modified + +------------------------------------------------------------------- +Tue Aug 27 15:17:28 CEST 2019 - kukuk@suse.de + +- Update to version 0.19 + - use libeconf for /usr/etc move + +------------------------------------------------------------------- +Thu Jan 17 16:52:42 CET 2019 - kukuk@suse.de + +- Update to version 0.18 + - allow to compile without etcd support + +------------------------------------------------------------------- +Wed Mar 28 13:35:47 CEST 2018 - kukuk@suse.de + +- Update to version 0.17 + - fix some bugs around etcd locks and reboot fast path + +------------------------------------------------------------------- +Mon Mar 19 12:00:31 CET 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Wed Jan 10 10:08:21 CET 2018 - kukuk@suse.de + +- Update to version 0.16 + - fix compile problem with new json-c [bsc#1075329] + +------------------------------------------------------------------- +Wed Sep 13 15:46:09 CEST 2017 - kukuk@suse.de + +- Update to version 0.15 + - Adjust for systemd >= 230 + +------------------------------------------------------------------- +Fri Mar 31 13:30:03 CEST 2017 - kukuk@suse.de + +- Update to version 0.14 + - Allow to have no maintenance window configured [bsc#1031619] + +------------------------------------------------------------------- +Wed Mar 15 13:13:14 CET 2017 - kukuk@suse.de + +- Update to version 0.13 + - Don't reboot outside maintenance window if getting the etcd + lock takes too long [bsc#1028060] + +------------------------------------------------------------------- +Fri Mar 3 16:44:09 CET 2017 - kukuk@suse.de + +- Update to version 0.12 + - Rewrote reboot code to not block dbus if we wait for etcd locks + [bsc#1026298] + - Fix rebootmgr.service dependencies + - Check input for maintenance window for correct syntax before + sending to the daemon [bsc#1026220] + +------------------------------------------------------------------- +Mon Feb 27 17:44:46 CET 2017 - kukuk@suse.de + +- Update to version 0.11 + - Implement unlocking of a machine_id not equal to our own [bsc#1026273] + - Watch for correct key when waiting for lock [bsc#1026274] + +------------------------------------------------------------------- +Thu Feb 16 15:01:51 CET 2017 - kukuk@suse.de + +- Update to version 0.10 + - Fix typos in documentation + - Fix compilation on 32bit systems + +------------------------------------------------------------------- +Tue Feb 14 11:36:41 CET 2017 - kukuk@suse.de + +- Update to version 0.9 + - Finish rebootmgrctl manual page + +------------------------------------------------------------------- +Wed Feb 8 16:48:30 CET 2017 - kukuk@suse.de + +- Update to version 0.8 + - Implement changing number of hosts holding a lock at the same time + - Add new and enhance existing manual pages + +------------------------------------------------------------------- +Thu Jan 12 21:19:48 CET 2017 - kukuk@suse.de + +- Update to version 0.7 + - Fix dbus name in systemd service file + +------------------------------------------------------------------- +Thu Jan 12 11:34:33 CET 2017 - kukuk@suse.de + +- Update to version 0.6 + - Add etcd lock support + +------------------------------------------------------------------- +Mon Jan 9 16:33:00 CET 2017 - kukuk@suse.de + +- Update to version 0.5 + - Rewrite for better dbus support + - Merges typo.patch + +------------------------------------------------------------------- +Tue Dec 13 10:08:30 CET 2016 - kukuk@suse.de + +- Fix typo in executing systemctl + +------------------------------------------------------------------- +Wed Nov 23 15:16:38 CET 2016 - kukuk@suse.de + +- Update to versin 0.3 + - fix path for systemctl + +------------------------------------------------------------------- +Wed Nov 23 10:50:31 CET 2016 - kukuk@suse.de + +- Update to version 0.2 + - implement maintenance window + - implement rebootmgrctl get-strategy + +------------------------------------------------------------------- +Sun Nov 20 21:37:09 CET 2016 - kukuk@suse.de + +- Initial submission + diff --git a/rebootmgr.spec b/rebootmgr.spec new file mode 100644 index 0000000..0010e96 --- /dev/null +++ b/rebootmgr.spec @@ -0,0 +1,82 @@ +# +# spec file for package rebootmgr +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: rebootmgr +Version: 3.0+git20250128.8fa577c +Release: 0 +Summary: Automatic controlled reboot during a maintenance window +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: System/Base +URL: https://github.com/SUSE/rebootmgr +Source: %{name}-%{version}.tar.xz +BuildRequires: docbook-xsl-stylesheets +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: timezone +BuildRequires: pkgconfig(libeconf) >= 0.7.6 +BuildRequires: pkgconfig(libsystemd) >= 257 + +%description +RebootManager is a dbus service to execute a controlled reboot after updates in a defined maintenance window. + +If you updated a system with e.g. transactional updates or a kernel update was applied, you can tell rebootmgrd with rebootmgrctl, that the machine should be reboot at the next possible time. This can either be immediately or during a defined maintenance window. + +%prep +%autosetup + +%build +%meson +%meson_build + +%install +%meson_install + +%check +%meson_test + +%pre +%service_add_pre rebootmgr.service +if [ -f /etc/rebootmgr.conf ] && [ ! -f /etc/rebootmgr/rebootmgr.conf.d/20-old-rebootmgr.conf ]; then + mkdir -p /etc/rebootmgr/rebootmgr.conf.d ||: + mv /etc/rebootmgr.conf /etc/rebootmgr/rebootmgr.conf.d/20-old-rebootmgr.conf +fi + +%post +%service_add_post rebootmgr.service + +%preun +%service_del_preun rebootmgr.service + +%postun +%service_del_postun rebootmgr.service + +%files +%license COPYING COPYING.LIB +%doc NEWS +%dir %{_datadir}/rebootmgr +%{_datadir}/rebootmgr/rebootmgr.conf +%{_unitdir}/rebootmgr.service +%{_bindir}/rebootmgrctl +%{_libexecdir}/rebootmgrd +%{_datadir}/bash-completion/completions/rebootmgrctl +%{_mandir}/man1/rebootmgrctl.1%{?ext_man} +%{_mandir}/man5/rebootmgr.conf.5%{?ext_man} +%{_mandir}/man8/rebootmgrd.8%{?ext_man} +%{_mandir}/man8/rebootmgr.service.8%{?ext_man} + +%changelog From 4abe2cbcd03fab2da45c0542309c97e0b34b7335dd1a16854b1488a0718db914 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 29 Jan 2025 09:58:41 +0000 Subject: [PATCH 2/2] - Update to version 3.0+git20250129.eed876f: * Release version 3.1 * rebootmgrd: fix check if new strategy is valid OBS-URL: https://build.opensuse.org/package/show/devel:microos/rebootmgr?expand=0&rev=23 --- _servicedata | 2 +- rebootmgr-3.0+git20250128.8fa577c.tar.xz | 3 --- rebootmgr-3.0+git20250129.eed876f.tar.xz | 3 +++ rebootmgr.changes | 7 +++++++ rebootmgr.spec | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) delete mode 100644 rebootmgr-3.0+git20250128.8fa577c.tar.xz create mode 100644 rebootmgr-3.0+git20250129.eed876f.tar.xz diff --git a/_servicedata b/_servicedata index d341bd7..fb1b499 100644 --- a/_servicedata +++ b/_servicedata @@ -1,5 +1,5 @@ https://github.com/SUSE/rebootmgr.git - 8fa577c713e7567795904904d9d30a259b6d5685 + eed876f90679183432df8e29b2664a699ad3a29d \ No newline at end of file diff --git a/rebootmgr-3.0+git20250128.8fa577c.tar.xz b/rebootmgr-3.0+git20250128.8fa577c.tar.xz deleted file mode 100644 index 0427b53..0000000 --- a/rebootmgr-3.0+git20250128.8fa577c.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce896cf9a46dc75c3906eb70762174e78395aa25c97f43fb42c448574a8a7e31 -size 43312 diff --git a/rebootmgr-3.0+git20250129.eed876f.tar.xz b/rebootmgr-3.0+git20250129.eed876f.tar.xz new file mode 100644 index 0000000..e0862fe --- /dev/null +++ b/rebootmgr-3.0+git20250129.eed876f.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c80a87ad19e5a2943ec2f26204da34ee228546b1f91b5b00d0090f5acb6c7e65 +size 43372 diff --git a/rebootmgr.changes b/rebootmgr.changes index 8d873fa..05391a3 100644 --- a/rebootmgr.changes +++ b/rebootmgr.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 29 09:56:49 UTC 2025 - kukuk@suse.com + +- Update to version 3.0+git20250129.eed876f: + * Release version 3.1 + * rebootmgrd: fix check if new strategy is valid + ------------------------------------------------------------------- Tue Jan 28 15:05:30 UTC 2025 - kukuk@suse.com diff --git a/rebootmgr.spec b/rebootmgr.spec index 0010e96..83756be 100644 --- a/rebootmgr.spec +++ b/rebootmgr.spec @@ -17,7 +17,7 @@ Name: rebootmgr -Version: 3.0+git20250128.8fa577c +Version: 3.0+git20250129.eed876f Release: 0 Summary: Automatic controlled reboot during a maintenance window License: GPL-2.0-only AND LGPL-2.1-or-later