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

Unified Diff: src/platform/installer/chromeos-install

Issue 551087: Install autotest client into usb drive and then to netbook harddrive. (Closed)
Patch Set: send for code review. Created 10 years, 11 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 | src/scripts/image_to_usb.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/installer/chromeos-install
diff --git a/src/platform/installer/chromeos-install b/src/platform/installer/chromeos-install
index 419f17d3d9a436fa0e5fea74398abfb771fd4abe..0c3f13382a5ced766d38a21c6d0faa5d07363a2e 100755
--- a/src/platform/installer/chromeos-install
+++ b/src/platform/installer/chromeos-install
@@ -202,6 +202,13 @@ STATEFUL_PARTITION="${DST}1"
sudo mkfs.ext3 "$STATEFUL_PARTITION"
sudo tune2fs -L "H-STATE" "$STATEFUL_PARTITION"
+# install things into stateful partition
+STATEFUL_DIR=/tmp/stateful_partition_on_hd
+mkdir -p "$STATEFUL_DIR"
+sudo mount "$STATEFUL_PARTITION" "$STATEFUL_DIR"
+cp -fpru /home/* "$STATEFUL_DIR"
+sudo umount "$STATEFUL_DIR"
+
# Force data to disk before we declare done.
sync
« no previous file with comments | « no previous file | src/scripts/image_to_usb.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698