diff options
author | Edward O'Callaghan <quasisec@google.com> | 2023-02-08 15:26:47 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-29 08:19:39 +0000 |
commit | 8deba66695b2edec31181a5f648980302537dd09 (patch) | |
tree | cbf18d47e1d5d109549bf231527ae8c1e0854264 | |
parent | 783e1d31c4a4c04185a107d82a3e86b6ab959a7c (diff) | |
download | vboot-8deba66695b2edec31181a5f648980302537dd09.tar.gz |
scripts/image_signing/make_dev_ssd.sh: Replace flashrom call
Just use futility directly.
BUG=b:260531154
TEST=```
localhost ~ # futility gbb -g --flash --rootkey=/tmp/rkey >/dev/null 2>&1
localhost ~ # od /tmp/rkey | head -130 | md5sum | sed 's/ .*$//'
a13642246ef93daaf75bd791446fec9b
```
Change-Id: I1aa3b52f568a5e78255b52a15d68258cc9d9aa44
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4269750
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4380996
Auto-Submit: Phoebe Wang <phoebewang@chromium.org>
Commit-Queue: Cheng Yueh <cyueh@chromium.org>
Tested-by: Phoebe Wang <phoebewang@chromium.org>
Reviewed-by: Cheng Yueh <cyueh@chromium.org>
-rwxr-xr-x | scripts/image_signing/make_dev_ssd.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/image_signing/make_dev_ssd.sh b/scripts/image_signing/make_dev_ssd.sh index a2db3229..09ad8d75 100755 --- a/scripts/image_signing/make_dev_ssd.sh +++ b/scripts/image_signing/make_dev_ssd.sh @@ -447,11 +447,9 @@ validity_check_live_firmware() { return fi debug_msg "Loading firmware to check root key..." - local bios_image="$(make_temp_file)" local rootkey_file="$(make_temp_file)" info "checking system firmware..." - sudo flashrom -p host -i GBB -r "$bios_image" >/dev/null 2>&1 - futility gbb -g --rootkey="$rootkey_file" "$bios_image" >/dev/null 2>&1 + futility gbb -g --flash --rootkey="$rootkey_file" >/dev/null 2>&1 if [ ! -s "$rootkey_file" ]; then debug_msg "failed to read root key from system firmware..." else |