From 504f0336ac46e0a6d20440d5805d07604d22f7aa Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Fri, 3 Nov 2023 16:40:06 -0400 Subject: [PATCH] init: add early boot 'o' option to jump directly to oem-factory-reset for OEM provisioning of secret prior of shipping products, once OS is installed and after MRC training happened on first boot. Signed-off-by: Thierry Laurion --- initrd/init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/initrd/init b/initrd/init index a9297c23..f604dc03 100755 --- a/initrd/init +++ b/initrd/init @@ -168,6 +168,11 @@ if [ "$boot_option" = "r" ]; then recovery 'User requested recovery shell' # just in case... exit +elif [ "$boot_option" = "o" ]; then + # Launch OEM Factory Reset/Re-Ownership + oem-factory-reset + # just in case... + exit fi if [ "$CONFIG_BASIC" = "y" ]; then