提交 661a8c32 编写于 作者: M mgceshuang

rollback post mount

Signed-off-by: Nmgceshuang <mashuang13@huawei.com>
上级 59f54eaa
......@@ -10,7 +10,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//base/startup/init/begetd.gni")
import("//build/ohos.gni")
# For init only
......@@ -35,7 +34,6 @@ ohos_static_library("libfsmanager_static") {
"//base/startup/init/services/log",
"//base/startup/init/services/include",
"//base/startup/init/services/param/include",
"//base/startup/init/interfaces/innerkits/init_module_engine/include",
]
if (defined(global_parts_info.startup_hvb)) {
sources += [
......@@ -57,12 +55,6 @@ ohos_static_library("libfsmanager_static") {
public_deps = [ "//base/startup/hvb/libhvb:libhvb_static" ]
}
deps = [ "//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine" ]
if (startup_init_extra_static_modules != "") {
deps += [ startup_init_extra_static_modules ]
}
public_configs = [ ":libfsmanager_exported_configs" ]
part_name = "init"
subsystem_name = "startup"
......
......@@ -26,7 +26,6 @@
#include "fs_manager/fs_manager.h"
#include "init_utils.h"
#include "param/init_param.h"
#include "bootstage.h"
#include "securec.h"
#ifdef SUPPORT_HVB
#include "dm_verity.h"
......@@ -407,8 +406,6 @@ int MountOneItem(FstabItem *item)
}
int rc = Mount(item->deviceName, item->mountPoint, item->fsType, mountFlags, fsSpecificData);
char* reason[] = {item->mountPoint, (char*)&rc};
HookMgrExecute(GetBootStageHookMgr(), INIT_POST_MOUNT, (void*)reason, NULL);
if (rc != 0) {
if (FM_MANAGER_NOFAIL_ENABLED(item->fsManagerFlags)) {
BEGET_LOGE("Mount no fail device %s to %s failed, err = %d", item->deviceName, item->mountPoint, errno);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册