summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaoxinintel <xinx.cao@intel.com>2014-12-02 19:51:35 +0800
committerLukasz Stelmach <l.stelmach@samsung.com>2014-12-08 04:15:36 -0800
commit5328e673a185c65491d29ab93dd71c92aa8670da (patch)
treec9e6bbd9c172d12411056617be00dfb628a116e0
parent179ee2e224eaf3fe7f3fc1b59148d5484b60bff9 (diff)
downloadsystemd-tizen_3.0_ivi.tar.gz
systemd-tizen_3.0_ivi.tar.bz2
systemd-tizen_3.0_ivi.zip
These services are not useful in Tizen. However, it still wastes time as systemd tries to load, queue and start them. And disabling these services will save some time during Tizen boot-up. Change-Id: Ic7080030bc6a20469f1adb270c44689c473a1e2a Signed-off-by: caoxinintel <xinx.cao@intel.com>
-rw-r--r--packaging/systemd.spec8
1 files changed, 8 insertions, 0 deletions
diff --git a/packaging/systemd.spec b/packaging/systemd.spec
index ff4e4171cd..9053566071 100644
--- a/packaging/systemd.spec
+++ b/packaging/systemd.spec
@@ -234,6 +234,14 @@ install -m 644 %{SOURCE4} %{buildroot}/%{_prefix}/lib/systemd/system/default.tar
rm -rf %{buildroot}/%{_docdir}/%{name}
+# Disable some useless services in Tizen
+rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/sysinit.target.wants/dev-hugepages.mount
+rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/sysinit.target.wants/sys-fs-fuse-connections.mount
+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/multi-user.target.wants/systemd-ask-password-wall.path
+
# Move macros to the proper location for Tizen
mkdir -p %{buildroot}%{_sysconfdir}/rpm
install -m644 src/core/macros.systemd %{buildroot}%{_sysconfdir}/rpm/macros.systemd