mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
Set success=1 for the recovery kernel
This will prevent the firmware from updating the tries flag on a USB recovery image. Change-Id: I47bf276eab5b40ae54b732d0e082e4c9f58bfed3 BUG=chromium-os:6550 TEST=build_package, build_image, cgpt show recovery_image.bin (successful flag should be set to 1) Review URL: http://codereview.chromium.org/4979007
This commit is contained in:
parent
b08d47ca16
commit
dc4a6446e9
@ -284,6 +284,10 @@ install_recovery_kernel() {
|
||||
count=$kern_a_size \
|
||||
conv=notrunc
|
||||
|
||||
# Set the 'Success' flag to 1 (to prevent the firmware from updating
|
||||
# the 'Tries' flag).
|
||||
sudo $GPT add -i 2 -S 1 "$RECOVERY_IMAGE"
|
||||
|
||||
# Repeat for the legacy bioses.
|
||||
# Replace vmlinuz.A with the recovery version
|
||||
local sysroot="${FLAGS_build_root}/${FLAGS_board}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user