summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2020-06-24 20:24:40 +0900
committerINSUN PYO <insun.pyo@samsung.com>2020-06-24 20:30:08 +0900
commit6ce7736be076f3d8341c399c0ff7c002eb31384c (patch)
treef24eecbe620586aa14b13335728fc95348fba0f1
parentac868e7d2ad64c677c2e79a489472c822752c212 (diff)
downloaddeviced-6ce7736be076f3d8341c399c0ff7c002eb31384c.tar.gz
deviced-6ce7736be076f3d8341c399c0ff7c002eb31384c.tar.bz2
deviced-6ce7736be076f3d8341c399c0ff7c002eb31384c.zip
Change systemd-shutdown installation directory
On 64bit machine, "%{_libdir}" is /usr/lib64. systemd uses fixed /usr/lib/systemd/systemd-shutdown Change-Id: I2d196f61b47c9db992152d45bf7a14becc427f06
-rw-r--r--packaging/deviced.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/deviced.spec b/packaging/deviced.spec
index d119d2ac..20f0ee60 100644
--- a/packaging/deviced.spec
+++ b/packaging/deviced.spec
@@ -189,7 +189,7 @@ install -m 775 scripts/dump_pmstate_log.sh %{buildroot}%{TZ_SYS_DUMPGEN}/dump_pm
%post
# Assume power module is on (-DPOWER_MODULE=on)
-update-alternatives --install %{_libdir}/systemd/systemd-shutdown systemd-shutdown %{_libdir}/systemd/deviced-shutdown 500
+update-alternatives --install %{_prefix}/lib/systemd/systemd-shutdown systemd-shutdown %{_prefix}/lib/systemd/deviced-shutdown 500
#memory type vconf key init
users_gid=$(getent group %{TZ_SYS_USER_GROUP} | cut -f3 -d':')