Loading init/builtins.cpp +0 −12 Original line number Diff line number Diff line Loading @@ -1309,17 +1309,6 @@ static Result<void> do_enter_default_mount_ns(const BuiltinArguments& args) { } } static Result<void> do_finish_userspace_reboot(const BuiltinArguments&) { LOG(INFO) << "Userspace reboot successfully finished"; boot_clock::time_point now = boot_clock::now(); SetProperty("sys.init.userspace_reboot.last_finished", std::to_string(now.time_since_epoch().count())); if (!android::sysprop::InitProperties::userspace_reboot_in_progress(false)) { return Error() << "Failed to set sys.init.userspace_reboot.in_progress property"; } return {}; } // Builtin-function-map start const BuiltinFunctionMap& GetBuiltinFunctionMap() { constexpr std::size_t kMax = std::numeric_limits<std::size_t>::max(); Loading @@ -1341,7 +1330,6 @@ const BuiltinFunctionMap& GetBuiltinFunctionMap() { {"exec_background", {1, kMax, {false, do_exec_background}}}, {"exec_start", {1, 1, {false, do_exec_start}}}, {"export", {2, 2, {false, do_export}}}, {"finish_userspace_reboot", {0, 0, {false, do_finish_userspace_reboot}}}, {"hostname", {1, 1, {true, do_hostname}}}, {"ifup", {1, 1, {true, do_ifup}}}, {"init_user0", {0, 0, {false, do_init_user0}}}, Loading init/reboot.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -731,9 +731,6 @@ static Result<void> UnmountAllApexes() { static Result<void> DoUserspaceReboot() { LOG(INFO) << "Userspace reboot initiated"; boot_clock::time_point now = boot_clock::now(); SetProperty("sys.init.userspace_reboot.last_started", std::to_string(now.time_since_epoch().count())); auto guard = android::base::make_scope_guard([] { // Leave shutdown so that we can handle a full reboot. LeaveShutdown(); Loading rootdir/init.rc +1 −1 Original line number Diff line number Diff line Loading @@ -1059,4 +1059,4 @@ on userspace-reboot-resume trigger boot on property:sys.boot_completed=1 && property:sys.init.userspace_reboot.in_progress=1 finish_userspace_reboot setprop sys.init.userspace_reboot.in_progress "" Loading
init/builtins.cpp +0 −12 Original line number Diff line number Diff line Loading @@ -1309,17 +1309,6 @@ static Result<void> do_enter_default_mount_ns(const BuiltinArguments& args) { } } static Result<void> do_finish_userspace_reboot(const BuiltinArguments&) { LOG(INFO) << "Userspace reboot successfully finished"; boot_clock::time_point now = boot_clock::now(); SetProperty("sys.init.userspace_reboot.last_finished", std::to_string(now.time_since_epoch().count())); if (!android::sysprop::InitProperties::userspace_reboot_in_progress(false)) { return Error() << "Failed to set sys.init.userspace_reboot.in_progress property"; } return {}; } // Builtin-function-map start const BuiltinFunctionMap& GetBuiltinFunctionMap() { constexpr std::size_t kMax = std::numeric_limits<std::size_t>::max(); Loading @@ -1341,7 +1330,6 @@ const BuiltinFunctionMap& GetBuiltinFunctionMap() { {"exec_background", {1, kMax, {false, do_exec_background}}}, {"exec_start", {1, 1, {false, do_exec_start}}}, {"export", {2, 2, {false, do_export}}}, {"finish_userspace_reboot", {0, 0, {false, do_finish_userspace_reboot}}}, {"hostname", {1, 1, {true, do_hostname}}}, {"ifup", {1, 1, {true, do_ifup}}}, {"init_user0", {0, 0, {false, do_init_user0}}}, Loading
init/reboot.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -731,9 +731,6 @@ static Result<void> UnmountAllApexes() { static Result<void> DoUserspaceReboot() { LOG(INFO) << "Userspace reboot initiated"; boot_clock::time_point now = boot_clock::now(); SetProperty("sys.init.userspace_reboot.last_started", std::to_string(now.time_since_epoch().count())); auto guard = android::base::make_scope_guard([] { // Leave shutdown so that we can handle a full reboot. LeaveShutdown(); Loading
rootdir/init.rc +1 −1 Original line number Diff line number Diff line Loading @@ -1059,4 +1059,4 @@ on userspace-reboot-resume trigger boot on property:sys.boot_completed=1 && property:sys.init.userspace_reboot.in_progress=1 finish_userspace_reboot setprop sys.init.userspace_reboot.in_progress ""