From 272e51c34603c9754537962f906ff38bdcfdeb50 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Tue, 18 Aug 2020 22:51:28 +0200 Subject: [PATCH] Do not log reboots to utmp This functionality is not used by Tizen services. Users can find reboots using standard log facilities (journal). Change-Id: Ie8926606ebb386684ba321ef4560eaec9143e4cf --- packaging/systemd.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/systemd.spec b/packaging/systemd.spec index 3333032..75d75c8 100644 --- a/packaging/systemd.spec +++ b/packaging/systemd.spec @@ -309,7 +309,9 @@ rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/sysinit.target.wants/sys-fs-fu rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/sysinit.target.wants/systemd-binfmt.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/sysinit.target.wants/systemd-modules-load.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/sysinit.target.wants/systemd-ask-password-console.path +rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/sysinit.target.wants/systemd-update-utmp.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/multi-user.target.wants/systemd-ask-password-wall.path +rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-update-utmp.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-volatile-root.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-tmpfiles-clean.timer rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-tmpfiles-clean.service @@ -319,6 +321,7 @@ rm -rf %{buildroot}/%{_prefix}/lib/systemd/user/systemd-tmpfiles-clean.service rm -rf %{buildroot}/%{_prefix}/lib/systemd/user/systemd-tmpfiles-setup.service # Exclude ELF binaries +rm -f %{buildroot}/%{_prefix}/lib/systemd/systemd-update-utmp rm -f %{buildroot}/%{_prefix}/lib/systemd/systemd-volatile-root rm -f %{buildroot}/%{_prefix}/lib/systemd/systemd-remount-fs rm -f %{buildroot}/%{_prefix}/lib/systemd/system-generators/systemd-fstab-generator -- 2.7.4