lazy_mount: remove unnecessary code. 67/186367/2 accepted/tizen/unified/20180821.091248 submit/tizen/20180821.143906
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 9 Aug 2018 07:13:27 +0000 (16:13 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Thu, 9 Aug 2018 07:19:46 +0000 (16:19 +0900)
Unencrypted /opt/usr mount is separated by opt-usr.mount and run this from local-fs.target.
So you no longer need to mount it in the starter.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I4c327a19d32d82578185c34e4fc6ae5616920f99

CMakeLists.txt
packaging/starter.spec
src/mobile/starter.c
src/wearable/starter.c

index 5035b1e..9d3bb1a 100644 (file)
@@ -89,7 +89,6 @@ pkg_check_modules(pkgs REQUIRED
        tts
        capi-message-port
        efl-extension
-       liblazymount
        libsystemd-daemon
        ode
 )
@@ -128,7 +127,6 @@ pkg_check_modules(pkgs REQUIRED
        deviced
        edbus
        dbus-1
-       liblazymount
        libsystemd-daemon
        rua
 )
index 0a970b6..7110df2 100644 (file)
@@ -27,7 +27,6 @@ BuildRequires:  pkgconfig(capi-message-port)
 BuildRequires:  pkgconfig(capi-telephony)
 BuildRequires:  pkgconfig(capi-system-info)
 BuildRequires:  pkgconfig(efl-extension)
-BuildRequires:  pkgconfig(liblazymount)
 BuildRequires:  pkgconfig(libsystemd-daemon)
 BuildRequires:  pkgconfig(ode)
 
index 228b642..4828329 100755 (executable)
@@ -26,7 +26,6 @@
 #include <Ecore_Wl2.h>
 
 #include <E_DBus.h>
-#include <lazy_mount.h>
 #include <systemd/sd-daemon.h>
 #include <ode/internal-encryption.h>
 
@@ -175,25 +174,8 @@ static int _check_dead_signal(int pid, void *data)
 
 
 
-static void _mount_and_launch_apps(void)
+static void _launch_apps(void)
 {
-       int ret = 0;
-
-       /*
-        * Do mount user data partition
-        */
-       ret = do_mount_user();
-       if (ret != 0) {
-               _E("Failed to mount [/opt] area");
-               return;
-       }
-
-       ret = wait_mount_user();
-       if (ret != 0) {
-               _E("Failed to wait mount for [/opt] area");
-               return;
-       }
-
        /* Tells the service manager that service startup is finished */
        sd_notify(0, "READY=1");
 
@@ -362,7 +344,7 @@ int starter_execute_ode_process(int booting_state)
                                _E("Failed to set mount event cb");
                        }
                } else {
-                       _mount_and_launch_apps();
+                       _launch_apps();
                }
        } else if (booting_state == AFTER_LOCKSCREEN) {
                if (ode_state == ODE_STATE_ENCRYPTED) {
index a34af83..ebd7e36 100755 (executable)
@@ -28,7 +28,6 @@
 #include <Ecore_Wl2.h>
 #include <malloc.h>
 
-#include <lazy_mount.h>
 #include <systemd/sd-daemon.h>
 
 #include "hw_key.h"