BUG=chromium-os:10062
TEST=manual
Verify the tempdir check by specifying a working directory on a filesystem
that's too small. It should complain:
dd if=/dev/zero bs=1M count=3 of=foo
mkfs.ext2 foo
mount -o loop foo /mnt
WORKDIR=/mnt ./recovery.sh
Verify the too-small USB check by selecting one that's too small. It won't
stop you, but will warn you like this:
I found 2 USB drives. We need one with at least 927MB capacity.
0 - <quit>
1 - Use /dev/sdc 4051MB SanDisk U3 Cruzer Micro
2 - Use /dev/sdd 32MB M-Sys DiskOnKey
Tell me what to do (or just press Enter to scan again): 2
WARNING: This drive seems too small (31MB). The recovery image is 927MB.
Is this the device you want to put the recovery image on?
/dev/sdd 32MB M-Sys DiskOnKey
You must enter 'YES' (all uppercase) to continue: ^C
Change-Id: I7cf78b5b69eba696d911ca8ee371909bcf3201c7
Review URL: http://codereview.chromium.org/5720007
BUG=chromium-os:10207
TEST=manual
Run the recovery script. It should say something like this (note "model",
not "HWID"):
There is 1 recovery image to choose from:
0 - <quit>
1 - Chrome Notebook
channel: beta-channel
model: IEC MARIO FISH 2330
model: IEC MARIO PONY 6101
Please select a recovery image to download:
Change-Id: I40cc73974b9e673bae5f69739e1642a6a95d4638
Review URL: http://codereview.chromium.org/5716006
Change-Id: I35cb42d4120b734f6332fb671787f1e76e0c6832
BUG=chromium-os:10093
TEST=manual
Run the installer. It should now say
"You must enter 'YES' (all uppercase) to continue: "
"If you're sure that's correct, enter 'DoIt' now (case is important): "
Review URL: http://codereview.chromium.org/5612009
Change-Id: I1b73674c769027cb557b37d3533534f261521106
BUG=chromium-os:781
TEST=manual
Try running recovery.sh with no args. It should try to download the config
file from a default location (which may not actually exist). Then try
running recovery.sh with a URL as a command-line argument. It should fetch
the config file from that location instead.
Review URL: http://codereview.chromium.org/5529006
Change-Id: Ic5b413e18f04a208a8e313be151ffc0da8db207b
BUG=chromium-os:781
TEST=manual, same as before.
TBR=eminer@chromium.org
Ed's given me a preliminary LGTM, and people are waiting.
This is work in progress. I'm committing what I've got as a starting point
for futher discussion, since we're just collaborating via email at the
moment, which is painful.
Change-Id: Iff21c008b3916d9612c021e5ee5c67258357d516
BUG=chromium-os:781
TEST=manual
Download user_tools/linux/recovery.sh to a linux machine and run it.
It should walk you through the process of creating a USB recovery key.
Review URL: http://codereview.chromium.org/5562003