Index: mod_image_for_recovery.sh |
diff --git a/mod_image_for_recovery.sh b/mod_image_for_recovery.sh |
index 3e4a6f978032ff5743503d35293b328343635514..e6cc8859a8cd1cc3afce56babea46a77e010d3a0 100755 |
--- a/mod_image_for_recovery.sh |
+++ b/mod_image_for_recovery.sh |
@@ -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}" |