init: chromeos_start should ignore to check block_devmode if in recovery
mode.

When block_devmode is enabled, there is no way to boot into dev mode except
for debug build. This affects the RMA shim as well which should be run by
RMA center. Since recovery mode only allowed to boot signed images, to release
the check of block_devmode in signed rootfs would be safe.

BUG=chrome-os-partner:62890, b:35586038
TEST=1. set block_devmode to 1.
     2. check RMA shim can boot successfully in dev + recovery modes.
     3. check normal image will still be blocked in dev mode.

Change-Id: Ia0e5ceff1761d16c1ae78c6cd3e84b6a2ecef5f0
Reviewed-on: https://chromium-review.googlesource.com/442966
Commit-Ready: Marco Chen <marcochen@chromium.org>
Tested-by: Marco Chen <marcochen@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
(cherry picked from commit fdb7d2cacba177c63a19fd93467297501a4632a9)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/1524782
Reviewed-by: Michael Hou <michael_hou@asus.corp-partner.google.com>
Reviewed-by: Philip Chen <philipchen@chromium.org>
Commit-Queue: Michael Hou <michael_hou@asus.corp-partner.google.com>
Tested-by: Michael Hou <michael_hou@asus.corp-partner.google.com>
1 file changed