- Add compatibility symlink for rebootmgrctl to sbin

OBS-URL: https://build.opensuse.org/package/show/devel:microos/rebootmgr?expand=0&rev=20
This commit is contained in:
Thorsten Kukuk 2024-11-11 06:05:25 +00:00 committed by Git OBS Bridge
commit e108423881
8 changed files with 404 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="manual">
<param name="version">2.5</param>
<param name="versionformat">2.6+git%cd.%h</param>
<param name="url">https://github.com/SUSE/rebootmgr.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="manual">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="manual"/>
</services>

5
_servicedata Normal file
View File

@ -0,0 +1,5 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/SUSE/rebootmgr.git</param>
<param name="changesrevision">fc0c103d4ff51f093b54581d47fff6ddf889b895</param></service>
</servicedata>

BIN
rebootmgr-2.4+git20240524.30e5383.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ddcac9ed2ab898422ffbde558f51c4f74d456d5d2bd0a14ad5d1f57dc840cbab
size 41368

274
rebootmgr.changes Normal file
View File

@ -0,0 +1,274 @@
-------------------------------------------------------------------
Mon Nov 11 06:03:16 UTC 2024 - Thorsten Kukuk <kukuk@suse.com>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- Update to version 2.1
- Support systemctl soft-reboot (systemd >= v254)
-------------------------------------------------------------------
Fri Aug 11 08:30:08 UTC 2023 - Avinesh Kumar <avinesh.kumar@suse.com>
- Typo fix in spec description
-------------------------------------------------------------------
Wed Oct 26 12:25:06 UTC 2022 - Thorsten Kukuk <kukuk@suse.com>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- Update to version 1.1
- fix systemd and tmpfiles.d directory path
-------------------------------------------------------------------
Thu Apr 30 10:27:37 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Use official tar archive
-------------------------------------------------------------------
Mon Apr 27 10:43:58 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Adjust BuildRequires
-------------------------------------------------------------------
Mon Apr 27 09:51:18 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- 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 <kukuk@suse.com>
- Disable ectd support (no current etcd C-library available)
-------------------------------------------------------------------
Wed Nov 27 13:59:47 UTC 2019 - Ignaz Forster <iforster@suse.com>
- 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

81
rebootmgr.spec Normal file
View File

@ -0,0 +1,81 @@
#
# spec file for package rebootmgr
#
# Copyright (c) 2024 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: 2.6+git20241108.fc0c103
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: pkgconfig(dbus-1)
BuildRequires: pkgconfig(libeconf)
%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
ln -sf ../bin/rebootmgrctl %{buildroot}%{_sbindir}/rebootmgrctl
#%check
#meson_test
%pre
%service_add_pre rebootmgr.service
%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
%{_sbindir}/rebootmgrctl
%{_sbindir}/rebootmgrd
%{_datadir}/dbus-1/interfaces/org.opensuse.RebootMgr.xml
%{_datadir}/dbus-1/system.d/org.opensuse.RebootMgr.conf
%{_mandir}/man1/rebootmgrctl.1%{?ext_man}
%{_mandir}/man5/rebootmgr.conf.5%{?ext_man}
%{_mandir}/man8/rebootmgrd.8%{?ext_man}
%{_mandir}/man8/org.opensuse.RebootMgr.conf.8%{?ext_man}
%{_mandir}/man8/rebootmgr.service.8%{?ext_man}
%changelog