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

Side by Side Diff: chromeos_startup

Issue 6542043: Remove /mnt/partner_partition (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/init.git@master
Patch Set: rebase Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos_shutdown ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # The kernel mounts /proc and /sys during initialization, prior 7 # The kernel mounts /proc and /sys during initialization, prior
8 # to starting init. 8 # to starting init.
9 9
10 # Mount /tmp first, so that bootstat can record output right away. 10 # Mount /tmp first, so that bootstat can record output right away.
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 mount -n -t tmpfs -o nodev,noexec,nosuid media /media 219 mount -n -t tmpfs -o nodev,noexec,nosuid media /media
220 220
221 mount -n -t debugfs debugfs /sys/kernel/debug 221 mount -n -t debugfs debugfs /sys/kernel/debug
222 222
223 # Enable crash reporting for all future exec'd processes, even those that have 223 # Enable crash reporting for all future exec'd processes, even those that have
224 # gone through setuid. 224 # gone through setuid.
225 echo 2 > /proc/sys/fs/suid_dumpable 225 echo 2 > /proc/sys/fs/suid_dumpable
226 226
227 # NOTE: ensure that a rootdev has been found. 227 # NOTE: ensure that a rootdev has been found.
228 if [ "$ROOTDEV_RET_CODE" = "0" ] ; then 228 if [ "$ROOTDEV_RET_CODE" = "0" ] ; then
229 # Mount OEM partner partition if OOBE has not yet been completed.
230 # Also create /tmp/machine-info.
231 if [ ! -e /home/chronos/.oobe_completed ]; then 229 if [ ! -e /home/chronos/.oobe_completed ]; then
232 OEM_DEV=${ROOT_DEV%[0-9]*}8
233 mount -n -t ext3 "$OEM_DEV" -o nodev,noexec,nosuid /mnt/partner_partition
234
235 # TODO(yjlou): We are developing a more generic hook mechanism (i.e. 230 # TODO(yjlou): We are developing a more generic hook mechanism (i.e.
236 # pre-OOBE-oem.sh), and will move this block to new hook point. 231 # pre-OOBE-oem.sh), and will move this block to new hook point.
237 # 232 #
238 # The activate_date script is installed in partner's board- 233 # The activate_date script is installed in partner's board-
239 # specific private overlay. Hence the vpd utility dependency 234 # specific private overlay. Hence the vpd utility dependency
240 # is described in private overlay, instead of chromeos-init. 235 # is described in private overlay, instead of chromeos-init.
241 # 236 #
242 # If the activate date script is executable (installed from the private 237 # If the activate date script is executable (installed from the private
243 # overlay), run it. 238 # overlay), run it.
244 if [ -x /usr/sbin/activate_date ]; then 239 if [ -x /usr/sbin/activate_date ]; then
(...skipping 16 matching lines...) Expand all
261 # 256 #
262 ureadahead & 257 ureadahead &
263 258
264 # Some things freak out if no hostname is set. 259 # Some things freak out if no hostname is set.
265 hostname localhost 260 hostname localhost
266 261
267 bootstat post-startup 262 bootstat post-startup
268 263
269 # Always return success to avoid killing init 264 # Always return success to avoid killing init
270 exit 0 265 exit 0
OLDNEW
« no previous file with comments | « chromeos_shutdown ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698