From 2514819d6873f993c11b66f162f1678ddf6d36ff Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Fri, 12 Jul 2024 11:17:07 +0900 Subject: [PATCH] units: Restore systemd-soft-reboot.service and add SmackProcessLabel Restore systemd-soft-reboot.service to support platform-only reboot and add SmackProcessLabel. Change-Id: If0782d2ddae685ad338affeadd3f83bd83905eb2 Signed-off-by: Chanwoo Choi --- packaging/systemd.spec | 1 - units/systemd-soft-reboot.service | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/systemd.spec b/packaging/systemd.spec index 2a2340c..91dcddb 100644 --- a/packaging/systemd.spec +++ b/packaging/systemd.spec @@ -351,7 +351,6 @@ rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-battery-check.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-journald@.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-journald@.socket rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-journald-varlink@.socket -rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-soft-reboot.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-growfs-root.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-growfs@.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-storagetm.service diff --git a/units/systemd-soft-reboot.service b/units/systemd-soft-reboot.service index 35ba3a9..2258f17 100644 --- a/units/systemd-soft-reboot.service +++ b/units/systemd-soft-reboot.service @@ -14,3 +14,6 @@ DefaultDependencies=no Requires=shutdown.target umount.target final.target After=shutdown.target umount.target final.target SuccessAction=soft-reboot-force + +[Service] +SmackProcessLabel=System -- 2.7.4