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

Side by Side Diff: chromeos_startup

Issue 6480015: Create /var/db at startup, for the benefit of the Gentoo 'sudo' configuration (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/init.git@master
Patch Set: 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 | « no previous file | 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 /mnt/stateful_partition/dev_image_old \ 172 /mnt/stateful_partition/dev_image_old \
173 /mnt/stateful_partition/var_old & 173 /mnt/stateful_partition/var_old &
174 fi 174 fi
175 175
176 # Make sure stateful partition has some basic directories 176 # Make sure stateful partition has some basic directories
177 mkdir -p -m 0755 /mnt/stateful_partition/etc 177 mkdir -p -m 0755 /mnt/stateful_partition/etc
178 mkdir -p -m 0755 /mnt/stateful_partition/home 178 mkdir -p -m 0755 /mnt/stateful_partition/home
179 mkdir -p -m 0755 /mnt/stateful_partition/home/chronos 179 mkdir -p -m 0755 /mnt/stateful_partition/home/chronos
180 mkdir -p -m 0755 /mnt/stateful_partition/var 180 mkdir -p -m 0755 /mnt/stateful_partition/var
181 mkdir -p -m 0755 /mnt/stateful_partition/var/cache 181 mkdir -p -m 0755 /mnt/stateful_partition/var/cache
182 mkdir -p -m 0755 /mnt/stateful_partition/var/db
182 mkdir -p -m 0755 /mnt/stateful_partition/var/empty 183 mkdir -p -m 0755 /mnt/stateful_partition/var/empty
183 mkdir -p -m 0755 /mnt/stateful_partition/var/lib 184 mkdir -p -m 0755 /mnt/stateful_partition/var/lib
184 mkdir -p -m 0755 /mnt/stateful_partition/var/lib/ureadahead 185 mkdir -p -m 0755 /mnt/stateful_partition/var/lib/ureadahead
185 mkdir -p -m 0755 /mnt/stateful_partition/var/lock 186 mkdir -p -m 0755 /mnt/stateful_partition/var/lock
186 mkdir -p -m 0755 /mnt/stateful_partition/var/log 187 mkdir -p -m 0755 /mnt/stateful_partition/var/log
187 mkdir -p -m 0755 /mnt/stateful_partition/var/log/metrics 188 mkdir -p -m 0755 /mnt/stateful_partition/var/log/metrics
188 mkdir -p -m 0755 /mnt/stateful_partition/var/log/window_manager 189 mkdir -p -m 0755 /mnt/stateful_partition/var/log/window_manager
189 mkdir -p -m 0755 /mnt/stateful_partition/var/run 190 mkdir -p -m 0755 /mnt/stateful_partition/var/run
190 mkdir -p -m 1777 /mnt/stateful_partition/var/tmp 191 mkdir -p -m 1777 /mnt/stateful_partition/var/tmp
191 192
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 # 242 #
242 ureadahead & 243 ureadahead &
243 244
244 # Some things freak out if no hostname is set. 245 # Some things freak out if no hostname is set.
245 hostname localhost 246 hostname localhost
246 247
247 bootstat post-startup 248 bootstat post-startup
248 249
249 # Always return success to avoid killing init 250 # Always return success to avoid killing init
250 exit 0 251 exit 0
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698