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

Unified Diff: src/platform/init/chromeos_startup

Issue 848002: Changes to enable dev in stateful partition for usb and startup (Closed)
Patch Set: Add legacy support 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/file_copy.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/init/chromeos_startup
diff --git a/src/platform/init/chromeos_startup b/src/platform/init/chromeos_startup
index 8e8b7801e5ef9a61fc014d979128af8c94ab0c1f..b1cc786997f6f9fe9366bf22097a116f14a35720 100755
--- a/src/platform/init/chromeos_startup
+++ b/src/platform/init/chromeos_startup
@@ -71,6 +71,12 @@ mount -n --bind /mnt/stateful_partition/var/log /var/log
mount -n -t tmpfs -omode=1777,nodev,noexec,nosuid vartmp /var/tmp
mount -n --bind /mnt/stateful_partition/home /home
+# Mount stateful partition for dev packages
+# TODO(sosa@chromium.org) - Use kernel flag
+if [ -f /root/.dev_mode ] ; then
+ mount -n --bind /mnt/stateful_partition/dev_image /usr/local
+fi
+
mount -n -t tmpfs -omode=0755,nosuid varrun /var/run
touch /var/run/.ramfs # TODO: Is this needed?
mount -n -t tmpfs -omode=1777,nodev,noexec,nosuid varlock /var/lock
« no previous file with comments | « no previous file | src/scripts/file_copy.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698