summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorWoo Chang Kim <wchang.kim@samsung.com>2016-08-25 02:00:32 -0700
committerwchang kim <wchang.kim@samsung.com>2016-08-25 18:32:03 +0900
commitdaf33e1ffd2d7f2be4d63e67114729541ab1d260 (patch)
treef80e4aa418fe169a7dda6adc635182982a77ff9f /units
parentb63cf7d6105a8866d82d7c8110eaa19fae0044d0 (diff)
downloadsystem-plugin-daf33e1ffd2d7f2be4d63e67114729541ab1d260.tar.gz
system-plugin-daf33e1ffd2d7f2be4d63e67114729541ab1d260.tar.bz2
system-plugin-daf33e1ffd2d7f2be4d63e67114729541ab1d260.zip
This reverts commit b63cf7d6105a8866d82d7c8110eaa19fae0044d0. Change-Id: I80b98406dbe1408fda9786de3b9103854eab0211
Diffstat (limited to 'units')
-rw-r--r--units/lazy_mount.service4
-rw-r--r--units/wait-user-mount.service11
2 files changed, 12 insertions, 3 deletions
diff --git a/units/lazy_mount.service b/units/lazy_mount.service
index e1f4f46..8d4d492 100644
--- a/units/lazy_mount.service
+++ b/units/lazy_mount.service
@@ -1,10 +1,8 @@
[Unit]
Description=Mount /opt/usr
-#ConditionPathIsMountPoint = !/opt/usr
[Service]
Type=oneshot
-SmackProcessLabel=System
-ExecStartPre=/usr/bin/rm -f /run/.unlock_mnt /tmp/.lazy_mount
+SmackProcessLabel=System::Privileged
ExecStart=/usr/bin/mount-user.sh
SuccessExitStatus=0
diff --git a/units/wait-user-mount.service b/units/wait-user-mount.service
new file mode 100644
index 0000000..b648197
--- /dev/null
+++ b/units/wait-user-mount.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Wait user mount
+After=starter.service
+Before=basic.target
+DefaultDependencies=no
+
+[Service]
+Type=notify
+ExecStart=/usr/bin/test_lazymount wait
+TimeoutStartSec=365d
+RemainAfterExit=yes