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

Issue 4120005: kernel, chromeos-initramfs: overhaul for recovery support (Closed)

Created:
10 years, 1 month ago by Will Drewry
Modified:
9 years, 7 months ago
Reviewers:
Nick Sanders, nsanders
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, adlr, anush, fes
Visibility:
Public.

Description

kernel, chromeos-initramfs: overhaul for recovery support Add support recovery, developer recovery, and dev script recovery and vfat and TPM in-kernel support. Adds tpmc and all the chromeos-recovery copies. TEST=With other changes: - Built factory installer and ensured it behaved normally - Built an image and mod'd for recovery and used in dev mode and normal mode - Installed normal mode on legacy firmware. - Built new recoery kernel and replaced recovery kernel on an older images - ensured it only works in normal mode - Tested dev mode to ensure keys exist on the drive and it doesn't delay - Tested dev mode to ensure keys exist on the drive and it does delay - Tested dev script in dev mode and not - Tested keyblocks that match but invalid signatures on the actual kernels (dev shim and dev install) - need to test with a /signed/ image on cros_fw BUG=chromium-os:7451

Patch Set 1 #

Total comments: 10

Patch Set 2 : nits whatnot #

Patch Set 3 : reworked to avoid penalizing factory #

Patch Set 4 : add log file; fix bugs; all test cases passing #

Patch Set 5 : add log file; fix bugs; all test cases passing #

Patch Set 6 : catch everything in the log but dont save it for factory #

Patch Set 7 : make shim dependent on valid keys not directly on the mode #

Patch Set 8 : shim and logging cleanup #

Patch Set 9 : a -> an #

Patch Set 10 : re-enable vblock overwriting until we change our image defaults #

Patch Set 11 : wired up gpt root; reorganization and cleanup #

Patch Set 12 : output cleanup #

Patch Set 13 : clean up and caught a orphaned var #

Patch Set 14 : make sure everything is current #

Patch Set 15 : add crosbug comment #

Patch Set 16 : fix umount #

Patch Set 17 : disable shim script in official mode pending http://crosbug/8390 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+663 lines, -89 lines) Patch
M chromeos-base/chromeos-initramfs/chromeos-initramfs-9999.ebuild View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -3 lines 0 comments Download
M chromeos-base/chromeos-initramfs/files/init View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +642 lines, -86 lines 0 comments Download
M chromeos-base/kernel/kernel-9999.ebuild View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Will Drewry
10 years, 1 month ago (2010-10-26 21:38:36 UTC) #1
Nick Sanders
It looks like this may have some problems for factory install. http://codereview.chromium.org/4120005/diff/1/3 File chromeos-base/chromeos-initramfs/files/init (right): ...
10 years, 1 month ago (2010-10-27 00:35:40 UTC) #2
Will Drewry
BTW, is factory install working again? I'm seeing trouble at switch_root which I'm beginning to ...
10 years, 1 month ago (2010-10-27 00:51:01 UTC) #3
Will Drewry
Huge overhaul to address concerns and to save logs for the non-factory case. I need ...
10 years, 1 month ago (2010-10-28 03:13:26 UTC) #4
Will Drewry
All test cases below barring Patchset 15 & 16 which just updated a comment and ...
10 years, 1 month ago (2010-10-29 02:35:52 UTC) #5
Will Drewry
Patchset 16 fixed the ful+sync+dev touch file case it seems. The failed umount kept the ...
10 years, 1 month ago (2010-10-29 02:44:45 UTC) #6
Will Drewry
Additional test cases: full image with a matching keyblock on the HDD but an invalid ...
10 years, 1 month ago (2010-10-29 15:44:34 UTC) #7
Will Drewry
Patchset 16 behavior tested. This change and the script changes should be fully functional for ...
10 years, 1 month ago (2010-10-29 16:16:16 UTC) #8
Nick Sanders
10 years, 1 month ago (2010-10-29 21:30:39 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698