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

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

Issue 465144: Fonts: add DejaVu, AbyssinicaSIL (Closed)
Patch Set: typo 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 | « src/package_repo/repo_list_image.txt ('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) 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 chmod -R a+rX "${SETUP_DIR}/rootfs_static_data/." 98 chmod -R a+rX "${SETUP_DIR}/rootfs_static_data/."
99 cp -r "${SETUP_DIR}/rootfs_static_data/common/." / 99 cp -r "${SETUP_DIR}/rootfs_static_data/common/." /
100 # TODO: Copy additional target-platform-specific subdirectories. 100 # TODO: Copy additional target-platform-specific subdirectories.
101 101
102 # Fix issue where alsa-base (dependency of alsa-utils) is messing up our sound 102 # Fix issue where alsa-base (dependency of alsa-utils) is messing up our sound
103 # drivers. The stock modprobe settings worked fine. 103 # drivers. The stock modprobe settings worked fine.
104 # TODO: Revisit when we have decided on how sound will work on chromeos. 104 # TODO: Revisit when we have decided on how sound will work on chromeos.
105 rm /etc/modprobe.d/alsa-base.conf 105 rm /etc/modprobe.d/alsa-base.conf
106 106
107 # Remove unneeded fonts. 107 # Remove unneeded fonts.
108 UNNEEDED_FONTS_TYPES=$(ls -d /usr/share/fonts/* | grep -v truetype) 108 rm -rf /usr/share/fonts/X11
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
111 rm -rf "$i"
112 done
113 109
114 # The udev daemon takes a long time to start up and settle so we defer it until 110 # 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 111 # 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 112 # and start X we pre-propulate some devices. These are copied into /dev by the
117 # chromeos_startup script. 113 # chromeos_startup script.
118 UDEV_DEVICES=/lib/udev/devices 114 UDEV_DEVICES=/lib/udev/devices
119 mkdir "$UDEV_DEVICES"/dri 115 mkdir "$UDEV_DEVICES"/dri
120 mkdir "$UDEV_DEVICES"/input 116 mkdir "$UDEV_DEVICES"/input
121 mknod --mode=0600 "$UDEV_DEVICES"/initctl p 117 mknod --mode=0600 "$UDEV_DEVICES"/initctl p
122 mknod --mode=0660 "$UDEV_DEVICES"/tty0 c 4 0 118 mknod --mode=0660 "$UDEV_DEVICES"/tty0 c 4 0
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 cat <<EOF > /etc/network/interfaces 190 cat <<EOF > /etc/network/interfaces
195 auto lo 191 auto lo
196 iface lo inet loopback 192 iface lo inet loopback
197 EOF 193 EOF
198 194
199 cat <<EOF > /etc/resolv.conf 195 cat <<EOF > /etc/resolv.conf
200 # Use the connman dns proxy. 196 # Use the connman dns proxy.
201 nameserver 127.0.0.1 197 nameserver 127.0.0.1
202 EOF 198 EOF
203 chmod a-wx /etc/resolv.conf 199 chmod a-wx /etc/resolv.conf
OLDNEW
« no previous file with comments | « src/package_repo/repo_list_image.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698