summaryrefslogtreecommitdiff
path: root/tests/vboot_api_init_tests.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2011-11-17 10:48:59 -0800
committerBill Richardson <wfrichar@chromium.org>2011-11-18 13:39:37 -0800
commit7272a6951107251a5c9b26330c506319a92a54b3 (patch)
tree48778a28259905ae1f2033b98cb8f714c67d93c6 /tests/vboot_api_init_tests.c
parentb265c34321c01bd279f3a1df0a2fea3601f732ee (diff)
downloadvboot-7272a6951107251a5c9b26330c506319a92a54b3.tar.gz
Dev-mode allows booting self-signed kernels by default.
When you enter dev-mode, Pressing Ctrl-U to boot from USB is DISABLED. Booting any self-signed kernel from the SSD is ENABLED. This replaces the "crossystem dev_boot_custom" argument with "crossystem dev_boot_signed_only", which has the opposite polarity. So if you want to dev-mode to only boot official kernels, you have to explictly set it that way. If you leave dev-mode and then come back, it will go back to the conditions shown above. BUG=chrome-os-partner:5954 TEST=manual Just run the factory flow. It was broken; this should fix it (except for any workarounds that were added while it was broken; those may need to be reverted). Change-Id: I13e0edbc0e77c5d6ea609dabf771085006cd1805 Reviewed-on: https://gerrit.chromium.org/gerrit/11853 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'tests/vboot_api_init_tests.c')
-rw-r--r--tests/vboot_api_init_tests.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/vboot_api_init_tests.c b/tests/vboot_api_init_tests.c
index 22010c63..09c210bf 100644
--- a/tests/vboot_api_init_tests.c
+++ b/tests/vboot_api_init_tests.c
@@ -192,7 +192,8 @@ static void VbInitTest(void) {
TEST_EQ(iparams.out_flags,
VB_INIT_OUT_CLEAR_RAM |
VB_INIT_OUT_ENABLE_DISPLAY |
- VB_INIT_OUT_ENABLE_USB_STORAGE, " out flags");
+ VB_INIT_OUT_ENABLE_USB_STORAGE |
+ VB_INIT_OUT_ENABLE_ALTERNATE_OS, " out flags");
TEST_EQ(shared->flags, VBSD_BOOT_DEV_SWITCH_ON, " shared flags");
/* Recovery mode from NV storage */