From 1e61b1b612856b078b41a3fecaed4aca3f3f4b96 Mon Sep 17 00:00:00 2001 From: Shawn Dunn Date: Fri, 10 Feb 2023 18:45:31 +0000 Subject: [PATCH] - Correct the transactional-update reboot method for KDE Desktop - 20230126 OBS-URL: https://build.opensuse.org/package/show/devel:microos/plasma-branding-MicroOS?expand=0&rev=5 --- plasma-branding-MicroOS.changes | 6 ++++++ plasma-branding-MicroOS.spec | 12 ++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/plasma-branding-MicroOS.changes b/plasma-branding-MicroOS.changes index 0f7ca5c..074adc1 100644 --- a/plasma-branding-MicroOS.changes +++ b/plasma-branding-MicroOS.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 26 12:24:00 UTC 2023 - Syds Bearda + +- Correct the transactional-update reboot method for KDE Desktop +- 20230126 + ------------------------------------------------------------------- Thu Aug 4 17:25:55 UTC 2022 - Shawn Dunn diff --git a/plasma-branding-MicroOS.spec b/plasma-branding-MicroOS.spec index 089139b..64cdbc4 100644 --- a/plasma-branding-MicroOS.spec +++ b/plasma-branding-MicroOS.spec @@ -1,7 +1,7 @@ # # spec file for package plasma-branding-MicroOS # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2021 SUSE Software Solutions GmbH # # All modifications and additions to the file contributed by third parties @@ -26,12 +26,14 @@ Source2: mod-firstboot.desktop Source3: mod-firstboot BuildArch: noarch BuildRequires: flatpak +BuildRequires: transactional-update Requires: flatpak Requires: libqt5-qdbus Requires: kdialog +Requires: transactional-update Requires: sound-theme-freedesktop Conflicts: gnome-branding-MicroOS -Version: 20210427 +Version: 20230126 Release: 0 %description @@ -54,6 +56,12 @@ install -m0644 mod-firstboot.desktop %{buildroot}%{_sysconfdir}/skel/.config/aut install -d %{buildroot}%{_bindir} install -m0755 mod-firstboot %{buildroot}%{_bindir}/mod-firstboot +%post +sed -i 's/^#REBOOT_METHOD=auto/REBOOT_METHOD=notify/' %{_prefix}%{_sysconfdir}/transactional-update.conf + +%postun +sed -i 's/^REBOOT_METHOD=notify/#REBOOT_METHOD=auto/' %{_prefix}%{_sysconfdir}/transactional-update.conf + %files %license COPYING %dir %{_prefix}/share/microos-desktop