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

Side by Side Diff: src/scripts/customize_rootfs.sh

Issue 477001: fix typo in comment (Closed)
Patch Set: Created 11 years 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
« 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) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 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 # Customizes the root file system of a chromium-based os. 7 # Customizes the root file system of a chromium-based os.
8 # NOTE: This script should be called by build_image.sh. Do not run this 8 # NOTE: This script should be called by build_image.sh. Do not run this
9 # on your own unless you know what you are doing. 9 # on your own unless you know what you are doing.
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 # Remove unneeded fonts. 107 # Remove unneeded fonts.
108 UNNEEDED_FONTS_TYPES=$(ls -d /usr/share/fonts/* | grep -v truetype) 108 UNNEEDED_FONTS_TYPES=$(ls -d /usr/share/fonts/* | grep -v truetype)
109 UNNEEDED_TRUETYPE_FONTS=$(ls -d /usr/share/fonts/truetype/* | grep -v ttf-droid) 109 UNNEEDED_TRUETYPE_FONTS=$(ls -d /usr/share/fonts/truetype/* | grep -v ttf-droid)
110 for i in $UNNEEDED_FONTS_TYPES $UNNEEDED_TRUETYPE_FONTS; do 110 for i in $UNNEEDED_FONTS_TYPES $UNNEEDED_TRUETYPE_FONTS; do
111 rm -rf "$i" 111 rm -rf "$i"
112 done 112 done
113 113
114 # The udev daemon takes a long time to start up and settle so we defer it until 114 # The udev daemon takes a long time to start up and settle so we defer it until
115 # after X11 has been started. In order to be able to mount the root file system 115 # after X11 has been started. In order to be able to mount the root file system
116 # and start X we pre-propulate some devices. These are copied into /dev by the 116 # and start X we pre-populate some devices. These are copied into /dev by the
117 # chromeos_startup script. 117 # chromeos_startup script.
118 UDEV_DEVICES=/lib/udev/devices 118 UDEV_DEVICES=/lib/udev/devices
119 mkdir "$UDEV_DEVICES"/dri 119 mkdir "$UDEV_DEVICES"/dri
120 mkdir "$UDEV_DEVICES"/input 120 mkdir "$UDEV_DEVICES"/input
121 mknod --mode=0600 "$UDEV_DEVICES"/initctl p 121 mknod --mode=0600 "$UDEV_DEVICES"/initctl p
122 mknod --mode=0660 "$UDEV_DEVICES"/tty0 c 4 0 122 mknod --mode=0660 "$UDEV_DEVICES"/tty0 c 4 0
123 mknod --mode=0660 "$UDEV_DEVICES"/tty1 c 4 1 123 mknod --mode=0660 "$UDEV_DEVICES"/tty1 c 4 1
124 mknod --mode=0660 "$UDEV_DEVICES"/tty2 c 4 2 124 mknod --mode=0660 "$UDEV_DEVICES"/tty2 c 4 2
125 mknod --mode=0666 "$UDEV_DEVICES"/tty c 5 0 125 mknod --mode=0666 "$UDEV_DEVICES"/tty c 5 0
126 mknod --mode=0666 "$UDEV_DEVICES"/ptmx c 5 2 126 mknod --mode=0666 "$UDEV_DEVICES"/ptmx c 5 2
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 cat <<EOF > /etc/network/interfaces 194 cat <<EOF > /etc/network/interfaces
195 auto lo 195 auto lo
196 iface lo inet loopback 196 iface lo inet loopback
197 EOF 197 EOF
198 198
199 cat <<EOF > /etc/resolv.conf 199 cat <<EOF > /etc/resolv.conf
200 # Use the connman dns proxy. 200 # Use the connman dns proxy.
201 nameserver 127.0.0.1 201 nameserver 127.0.0.1
202 EOF 202 EOF
203 chmod a-wx /etc/resolv.conf 203 chmod a-wx /etc/resolv.conf
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