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

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

Issue 1017001: Add installation of stateful partition to scripts (Closed)
Patch Set: Merge changes Created 10 years, 9 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 f8a6d531253eee2dc492174e7184a35a21058944..12d12be7f65d594397456fb993411f4edd18c155 100755
--- a/src/platform/installer/chromeos-install
+++ b/src/platform/installer/chromeos-install
@@ -223,14 +223,12 @@ STATEFUL_PARTITION="${DST}1"
sudo mkfs.ext3 "$STATEFUL_PARTITION"
sudo tune2fs -L "H-STATE" "$STATEFUL_PARTITION"
-# install things into stateful partition
-if [ -d /home/autotest-client ]
-then
+# Install dev image into the stateful partition
+if [ -f /root/.dev_mode ] ; then
STATEFUL_DIR=/tmp/stateful_partition_on_hd
mkdir -p "$STATEFUL_DIR"
sudo mount "$STATEFUL_PARTITION" "$STATEFUL_DIR"
- sudo mkdir -p "$STATEFUL_DIR/home/autotest-client"
- sudo cp -fpru /home/autotest-client "$STATEFUL_DIR/home/autotest-client"
+ sudo cp -fpru /mnt/stateful_partition/dev_image "$STATEFUL_DIR/dev_image"
sudo umount "$STATEFUL_DIR"
fi
« 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