summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorwchang kim <wchang.kim@samsung.com>2016-08-24 11:19:54 +0900
committerwchang kim <wchang.kim@samsung.com>2016-08-24 11:19:54 +0900
commitb31904253f6175183385aca171b491fea234e0f7 (patch)
treefa63dfd9a32b2d54e25d40395071a97391b80189 /packaging
parent78b2d513b638b5f6f4154a8334e5306d2e736607 (diff)
downloadsystem-plugin-b31904253f6175183385aca171b491fea234e0f7.tar.gz
system-plugin-b31904253f6175183385aca171b491fea234e0f7.tar.bz2
system-plugin-b31904253f6175183385aca171b491fea234e0f7.zip
Description : Adding fstab for lazy mount
fstab for lazy mount includes root partition and system-data partition. Lazy mount is only for mobile profile. Change-Id: I8519f6c705ee3ae0d842ec28262bc55dad438e7b
Diffstat (limited to 'packaging')
-rw-r--r--packaging/system-plugin.spec14
1 files changed, 10 insertions, 4 deletions
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec
index 16998b3..fe6ad1f 100644
--- a/packaging/system-plugin.spec
+++ b/packaging/system-plugin.spec
@@ -152,6 +152,9 @@ mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 etc/fstab %{buildroot}%{_sysconfdir}
# ugly temporary patch for initrd wearable
install -m 644 etc/fstab_initrd %{buildroot}%{_sysconfdir}
+# lazymnt
+install -m 644 etc/fstab_lazymnt %{buildroot}%{_sysconfdir}
+install -m 644 etc/fstab_initrd_lazymnt %{buildroot}%{_sysconfdir}
# fstrim
mkdir -p %{buildroot}%{_unitdir}/graphical.target.wants
@@ -179,7 +182,7 @@ systemctl daemon-reload
%post -n liblazymount
/sbin/ldconfig
-/usr/bin/vconftool set -f -t int db/system/lazy_mount_show_ui 0
+/usr/bin/vconftool set -f -t int db/system/lazy_mount_show_ui 1
systemctl daemon-reload
%postun -n liblazymount -p /sbin/ldconfig
@@ -203,7 +206,7 @@ systemctl daemon-reload
%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-system\x2ddata.service
%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-user.service
%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-rootfs.service
-%{_sysconfdir}/fstab
+%{_sysconfdir}/fstab_lazymnt
%{_unitdir}/graphical.target.wants/tizen-fstrim-user.timer
%{_unitdir}/tizen-fstrim-user.timer
%{_unitdir}/tizen-fstrim-user.service
@@ -232,7 +235,10 @@ mv %{_sysconfdir}/fstab_initrd %{_sysconfdir}/fstab
# fstab for tm1
%post spreadtrum
rm %{_sysconfdir}/fstab
-mv %{_sysconfdir}/fstab_initrd %{_sysconfdir}/fstab
+mv %{_sysconfdir}/fstab_initrd_lazymnt %{_sysconfdir}/fstab
+%post n4
+rm %{_sysconfdir}/fstab
+mv %{_sysconfdir}/fstab_lazymnt %{_sysconfdir}/fstab
%files spreadtrum
%manifest %{name}.manifest
@@ -240,7 +246,7 @@ mv %{_sysconfdir}/fstab_initrd %{_sysconfdir}/fstab
/csa
%{_prefix}/lib/udev/rules.d/51-system-plugin-spreadtrum.rules
%{_unitdir}/tizen-system-env.service
-%{_sysconfdir}/fstab_initrd
+%{_sysconfdir}/fstab_initrd_lazymnt
%{_unitdir}/basic.target.wants/tizen-system-env.service
%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dpartlabel-user.service
%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dpartlabel-system\x2ddata.service