diff --git a/begetd.gni b/begetd.gni index 2b18ec65ae4d9998ee4cc192f12a059343de3987..815baa069b46d613dc0786d8f79a219867d87316 100644 --- a/begetd.gni +++ b/begetd.gni @@ -91,4 +91,7 @@ declare_args() { # init sasn support init_feature_support_asan = true + + # enable mksh for smartlock + init_feature_smartlock = false } diff --git a/bundle.json b/bundle.json index 4ea02f8e9b566009ca9cc16208cfee33ea59ab1a..98e78782aeba0265b9f2c61023b7c54feac02b60 100755 --- a/bundle.json +++ b/bundle.json @@ -36,7 +36,8 @@ "init_feature_enable_lite_process_priority", "init_feature_use_hook_mgr", "init_get_disk_sn", - "init_feature_custom_sandbox" + "init_feature_custom_sandbox", + "init_feature_smartlock" ], "adapted_system_type": [ "mini", diff --git a/services/init/lite/BUILD.gn b/services/init/lite/BUILD.gn index 2a4c41adf1c479d02e28cceb39c6bca845ebf865..43ca2760db5eea65d744092368bdcb0a2aa7dbfa 100644 --- a/services/init/lite/BUILD.gn +++ b/services/init/lite/BUILD.gn @@ -96,6 +96,9 @@ executable("init") { "//third_party/mksh", ] external_deps += [ "toybox:toybox" ] + if (init_feature_smartlock) { + deps += [ "//third_party/mksh" ] + } } if (init_feature_use_hook_mgr) {