From daf33e1ffd2d7f2be4d63e67114729541ab1d260 Mon Sep 17 00:00:00 2001 From: Woo Chang Kim Date: Thu, 25 Aug 2016 02:00:32 -0700 Subject: Revert "Revert "Description : Adding fstab for lazy mount"" This reverts commit b63cf7d6105a8866d82d7c8110eaa19fae0044d0. Change-Id: I80b98406dbe1408fda9786de3b9103854eab0211 --- units/lazy_mount.service | 4 +--- units/wait-user-mount.service | 11 +++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 units/wait-user-mount.service (limited to 'units') 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 -- cgit v1.2.3