Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Unified Diff: build_image

Issue 3344008: Don't kill sdcards with boot_tries (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: rebase Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_image
diff --git a/build_image b/build_image
index 3a26baacc07a4afef05c3285aff3706a84b13304..f51b1826afc9e294a72ff2beac358c071e9b3d82 100755
--- a/build_image
+++ b/build_image
@@ -651,6 +651,10 @@ create_base_image() {
"${OUTPUT_DIR}" \
"${OUTPUT_DIR}/${image_name}"
+ # Pre-set "sucessful" bit in gpt, so we will never mark-for-death
+ # a partition on an SDCard/USB stick.
+ ${GPT} add -i 2 -S 1 "${OUTPUT_DIR}/${image_name}"
+
trap - EXIT
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698