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

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

Issue 460118: Split Continuous/User build and provide useful version information for continuous builder (Closed)
Patch Set: versioning 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/scripts/chromeos_version.sh ('k') | src/scripts/enter_chroot.sh » ('j') | 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 26 matching lines...) Expand all
37 PASSWORD="$(base64 /dev/urandom | head -1)" 37 PASSWORD="$(base64 /dev/urandom | head -1)"
38 CRYPTED_PASSWD="$(echo "$PASSWORD" | openssl passwd -1 -stdin)" 38 CRYPTED_PASSWD="$(echo "$PASSWORD" | openssl passwd -1 -stdin)"
39 PASSWORD="gone now" 39 PASSWORD="gone now"
40 fi 40 fi
41 41
42 # Set CHROMEOS_VERSION_DESCRIPTION here (uses vars set in chromeos_version.sh) 42 # Set CHROMEOS_VERSION_DESCRIPTION here (uses vars set in chromeos_version.sh)
43 # Was removed from chromeos_version.sh which can also be run outside of chroot 43 # Was removed from chromeos_version.sh which can also be run outside of chroot
44 # where CHROMEOS_REVISION is set 44 # where CHROMEOS_REVISION is set
45 if [ ${CHROMEOS_OFFICIAL:-0} = 1 ]; then 45 if [ ${CHROMEOS_OFFICIAL:-0} = 1 ]; then
46 export CHROMEOS_VERSION_DESCRIPTION="${CHROMEOS_VERSION_STRING} (Official Bui ld ${CHROMEOS_REVISION:?})" 46 export CHROMEOS_VERSION_DESCRIPTION="${CHROMEOS_VERSION_STRING} (Official Bui ld ${CHROMEOS_REVISION:?})"
47 elif [ "$USER" = "chrome-bot" ]
48 then
49 export CHROMEOS_VERSION_DESCRIPTION="${CHROMEOS_VERSION_STRING} (Continuous B uild ${CHROMEOS_REVISION:?} - Builder: ${BUILDBOT_BUILD:-"N/A"})"
47 else 50 else
48 export CHROMEOS_VERSION_DESCRIPTION="${CHROMEOS_VERSION_STRING} (Developer Bu ild - $(date)-$USER)" 51 # Use the $USER passthru via $CHROMEOS_RELEASE_CODENAME
52 export CHROMEOS_VERSION_DESCRIPTION="${CHROMEOS_VERSION_STRING} (Developer Bu ild ${CHROMEOS_REVISION:?} - $(date) - $CHROMEOS_RELEASE_CODENAME)"
49 fi 53 fi
50 54
51 # Set google-specific version numbers: 55 # Set google-specific version numbers:
52 # CHROMEOS_RELEASE_CODENAME is the codename of the release. 56 # CHROMEOS_RELEASE_CODENAME is the codename of the release.
53 # CHROMEOS_RELEASE_DESCRIPTION is the version displayed by Chrome; see 57 # CHROMEOS_RELEASE_DESCRIPTION is the version displayed by Chrome; see
54 # chrome/browser/chromeos/chromeos_version_loader.cc. 58 # chrome/browser/chromeos/chromeos_version_loader.cc.
55 # CHROMEOS_RELEASE_NAME is a human readable name for the build. 59 # CHROMEOS_RELEASE_NAME is a human readable name for the build.
56 # CHROMEOS_RELEASE_TRACK and CHROMEOS_RELEASE_VERSION are used by the software 60 # CHROMEOS_RELEASE_TRACK and CHROMEOS_RELEASE_VERSION are used by the software
57 # update service. 61 # update service.
58 # TODO(skrul): Remove GOOGLE_RELEASE once Chromium is updated to look at 62 # TODO(skrul): Remove GOOGLE_RELEASE once Chromium is updated to look at
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 cat <<EOF > /etc/network/interfaces 194 cat <<EOF > /etc/network/interfaces
191 auto lo 195 auto lo
192 iface lo inet loopback 196 iface lo inet loopback
193 EOF 197 EOF
194 198
195 cat <<EOF > /etc/resolv.conf 199 cat <<EOF > /etc/resolv.conf
196 # Use the connman dns proxy. 200 # Use the connman dns proxy.
197 nameserver 127.0.0.1 201 nameserver 127.0.0.1
198 EOF 202 EOF
199 chmod a-wx /etc/resolv.conf 203 chmod a-wx /etc/resolv.conf
OLDNEW
« no previous file with comments | « src/scripts/chromeos_version.sh ('k') | src/scripts/enter_chroot.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698