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

Unified Diff: user_tools/README_recovery.txt

Issue 5743001: Updated documentation to describe config file format. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git@master
Patch Set: yes, thanks. Created 10 years 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: user_tools/README_recovery.txt
diff --git a/user_tools/README_recovery.txt b/user_tools/README_recovery.txt
index 4360256103867401bd02963b273ec544827886ca..bc947d2f6d02d27ee479da800a3426e3ff5adec3 100644
--- a/user_tools/README_recovery.txt
+++ b/user_tools/README_recovery.txt
@@ -12,47 +12,73 @@ steps.
3. Ask the user to select a USB drive, and write the recovery image to it.
+
+
Here's the format of the config file:
-The config file is a text file containing at least two paragraphs or
-stanzas, which are separated by at least one blank line. Lines beginning
-with '#' are completely ignored and do not count as blank lines. Non-blank
-lines must consist of a non-blank key and non-blank value separated by a '='
-with no spaces on either side. The key may not contain whitespace. The value
-may contain spaces, but all trailing whitespace is discarded.
+The config file is a machine-generated, human-readable text file containing
+at least two paragraphs or stanzas, which are separated by at least one
+blank line.
-The first stanza must contain a key named "recovery_tool_version'. Its value
-must match the version of the recovery tool. If the value does not match,
-then the key 'recovery_tool_update', if it exists in the first stanza,
-should contain a string to display to the user. Regardless, if the version
-doesn't match, the recovery tool should exit.
+* Each line in the file ends with "\n" (LF), not "\r\n" (CRLF).
-The second and remaining stanzas describe recovery images to put on the USB
-drive.
+* The file shall not contain any tab characters.
-For recovery_tool_version=1.0, each image stanza must contain:
+* Lines beginning with '#' are completely ignored and do not count as blank
+ lines.
-* One and only one of these keys:
+* Non-blank lines must consist of a non-blank key and non-blank value
+ separated by a '=' with no spaces on either side. The key may not contain
+ whitespace. The value may contain spaces, but all trailing whitespace is
+ discarded.
- display_name - string to show to the user
- file - the name of the file to extract from the tarball
- size - size in bytes of the tarball
+* The first stanza must contain a key named "recovery_tool_version'. Its
+ value must match the version of the recovery tool. If the value does not
+ match, then the key 'recovery_tool_update', if it exists in the first
+ stanza, should contain a string to display to the user. Regardless, if the
+ version doesn't match, the recovery tool should exit.
+
+* The first stanza MAY have platform-specific keys such as
+ 'recovery_tool_linux_version'. If present, this key is used instead of the
+ 'recovery_tool_version' key to determine the required recovery tool
+ version.
+
+* The current recovery_tool_version value is 0.9.1
+
+* The archive shall be in ZIP format.
-* One or more of these keys:
- url - where to find the tarball to download
+The second and remaining stanzas describe recovery images to put on the USB
+drive. Each image stanza must contain, in this order:
+
+* One and only one of each of these keys:
+
+ name - string to show to the user
+ zipfilesize - size in bytes of the zipfile
+ file - the name of the file to extract from the zipfile
+ filesize - size in bytes of the extracted, uncompressed file
+ channel - the channel for this image ("beta-channel",
+ "dev-channel", "pilot-channel", etc.)
+
+* Zero or more of these keys:
+
+ hwid - the HWID of the device which can use this image (no
+ entry means "any device")
* One or both of these keys:
- md5 - md5sum of the tarball
- sha1 - sha1sum of the tarball
+ md5 - md5sum of the zipfile
+ sha1 - sha1sum of the zipfile
+
+* One or more of these keys:
-* Any other keys are informational only and are not used by the recovery tool.
+ url - where to find the zipfile to download
+Any other keys are informational only and are not used by the recovery tool.
-NOTE: This is still in flux. Possible additional keys are
+If more than one url is provided, then they should be tried, in turn, until
+one succeeds.
- hwid
- name
- channel
+At a minimum, the user shall be shown the name, channel, and all hwid values
+for each image.
« 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