factory_install: Don't panic on failure.

factory_install.sh used to simply return on error and rely on its caller (used
to be the init inside initramfs). The new factory_install_service calls
installer by exec so we have to add "sleep 1d" in the service, otherwise it'll
simply exit and kernel will panic due to PID 1 (init) abort.

BUG=none
TEST=manual boot factory install shim, abort and see no panic.

Change-Id: I20cc02f26434648c1b50609238df78cffb9f40fd
Reviewed-on: https://chromium-review.googlesource.com/253989
Reviewed-by: Wei-Ning Huang <wnhuang@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
2 files changed