Commit Graph

1728 Commits

Author SHA1 Message Date
derat@google.com
5fc3fcf15e build: Make make_chroot and make_local_repo fail when run as root.
Still seeing some bugs get filed related to this.  I went through
all of the scripts, but let me know if I missed any.

Review URL: http://codereview.chromium.org/432002

git-svn-id: svn://chrome-svn/chromeos/trunk@306 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-23 16:33:38 +00:00
derat@google.com
4e7a92bd48 build: Update build_image.sh for non-~/chromeos setups.
BUG=659

Review URL: http://codereview.chromium.org/431001

git-svn-id: svn://chrome-svn/chromeos/trunk@305 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-21 23:44:14 +00:00
derat@google.com
86dcc8e68b build: Make enter_chroot.sh fail if run as root.
BUG=684

Review URL: http://codereview.chromium.org/429006

git-svn-id: svn://chrome-svn/chromeos/trunk@304 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-21 19:49:49 +00:00
derat@google.com
a9948c6336 build: Update fontconfig to fall back on Droid.
This fixes monospace fonts in Chrome.  This change also
moves some static files out of customize_rootfs.sh.

BUG=237

Review URL: http://codereview.chromium.org/424011

git-svn-id: svn://chrome-svn/chromeos/trunk@303 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-21 18:01:05 +00:00
tedbo@google.com
c0c8c69143 Split out installation of packages from customize_rootfs into a separate script.
The build_image script now calls install_packages.sh followed
by customize_rootfs.sh.

The current system installs packages and performs customization
fixups from within the rootfs it is building. In order to
cross-build properly we'll need to do these steps from outside
of the root. Splitting package installation and rootfs customization
will make it easier to do this. A follow-on change will modify
customize_rootfs to run from outside of the rootfs.

Review URL: http://codereview.chromium.org/414051

git-svn-id: svn://chrome-svn/chromeos/trunk@300 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-20 22:15:58 +00:00
kwaters@google.com
5db44aa611 Add fio based autotest cases.
- Rev chromeos-systemtests, and add fio as a dependency.
- Add fio into the image during mod_image_for_test.sh

Review URL: http://chromereview.prom.corp.google.com/1180028

git-svn-id: svn://chrome-svn/chromeos/trunk@297 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-19 22:31:21 +00:00
sosa@google.com
d8797c3e4d Remove chrome branding
Review URL: http://chromereview.prom.corp.google.com/1187091

git-svn-id: svn://chrome-svn/chromeos/trunk@288 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-19 01:58:22 +00:00
seanparent@google.com
b8b373e187 Start of script for entering tracker reports.
Review URL: http://chromereview.prom.corp.google.com/1188074

git-svn-id: svn://chrome-svn/chromeos/trunk@283 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-18 23:35:51 +00:00
djmm@google.com
dbeea200b4 Mask error if nothing to DEFAULT_FROM.
Review URL: http://chromereview.prom.corp.google.com/1188077


git-svn-id: svn://chrome-svn/chromeos/trunk@275 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-18 02:43:30 +00:00
tedbo@google.com
afab3ca65c Workaround the fact that Ubuntu packages want to install
their own init script in /etc/init.

This changes the chromeos-init package to install our
init scripts in /etc/init.chromeos. In the customize_rootfs
stage we remove /etc/init and replace with our init scripts.

Review URL: http://chromereview.prom.corp.google.com/1187069


git-svn-id: svn://chrome-svn/chromeos/trunk@264 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-17 18:14:36 +00:00
djmm@google.com
72cfa11d9b Add an --official_build option to set CHROMEOS_OFFICIAL=1 (used by buildbot).
Review URL: http://chromereview.prom.corp.google.com/1188062

git-svn-id: svn://chrome-svn/chromeos/trunk@258 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-17 00:26:20 +00:00
rtc@google.com
d172735c1f Removes the old chromeos-wifi package
Review URL: http://chromereview.prom.corp.google.com/1187065

git-svn-id: svn://chrome-svn/chromeos/trunk@257 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-16 23:20:42 +00:00
djmm@google.com
42ac48c9aa Update CHROMEOS_VERSION_MINOR=4 and CHROMEOS_VERSION_CODENAME="".
Review URL: http://chromereview.prom.corp.google.com/1188057

git-svn-id: svn://chrome-svn/chromeos/trunk@256 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-16 23:08:37 +00:00
djmm@google.com
8b4ec454ed Just send all CHROMEOS_ vars to the var script.
Review URL: http://chromereview.prom.corp.google.com/1188056

git-svn-id: svn://chrome-svn/chromeos/trunk@255 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-16 23:08:29 +00:00
tedbo@google.com
51390cc378 Since postinst is part of installer, the software updater
should depend on the installer package.

Move postinst out of customize_rootfs and into the installer
package (at least for now).

Review URL: http://chromereview.prom.corp.google.com/1187059


git-svn-id: svn://chrome-svn/chromeos/trunk@252 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-16 19:09:06 +00:00
djmm@google.com
6e216c19eb Make sure we're passing CHROMEOS_REVISION through to customized rootfs.
Review URL: http://chromereview.prom.corp.google.com/1187047

git-svn-id: svn://chrome-svn/chromeos/trunk@241 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-13 23:54:41 +00:00
msb@google.com
843e9a3cf1 Fix typo
Review URL: http://chromereview.prom.corp.google.com/1187046

git-svn-id: svn://chrome-svn/chromeos/trunk@239 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-13 22:31:50 +00:00
djmm@google.com
6ba3393116 Move the setting of CHROMEOS_VERSION_DESCRIPTION which uses CHROMEOS_REVISION out of chromeos_version.sh where it may not be set when called from archive_build.sh. Set it the only place it's used, in customize_rootfs.sh.
Review URL: http://chromereview.prom.corp.google.com/1187036

git-svn-id: svn://chrome-svn/chromeos/trunk@237 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-13 21:04:21 +00:00
tedbo@google.com
4393d5501e Remove USE_UBUNTU_KERNEL stuff.
Review URL: http://chromereview.prom.corp.google.com/1188039


git-svn-id: svn://chrome-svn/chromeos/trunk@235 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-13 19:22:30 +00:00
albertb@google.com
82275a3e16 Don't crash if the cookie pipe doesn't exist.
Review URL: http://chromereview.prom.corp.google.com/1187035

git-svn-id: svn://chrome-svn/chromeos/trunk@233 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-13 19:17:31 +00:00
wfrichar@google.com
8f72cbd775 Don't install Recommended packages, only required ones.
But, we still explictly require bootchart-java, to create the pretty picture.

Without explicitly adding bootchart-java, it removes these packages:

  bootchart-java
  ca-certificates-java
  default-jre-headless
  gcj-4.4-base
  gcj-4.4-jre
  gcj-4.4-jre-headless
  gcj-4.4-jre-lib
  gcj-jre
  gcj-jre-headless
  icedtea-6-jre-cacao
  java-common
  libcommons-cli-java
  libcommons-compress-java
  libcommons-lang-java
  libgcj-common
  libgcj10
  libgcj10-awt
  libjline-java
  liblcms1
  openjdk-6-jre-headless
  openjdk-6-jre-lib
  python-central
  rhino
  tzdata-java

By explicitly adding bootchart-java it removes only these packages:

  gcj-4.4-jre-lib
  icedtea-6-jre-cacao

Either way, bootchart still collects the data so it is possible to generate
the pictures remotely.

Review URL: http://chromereview.prom.corp.google.com/1188035


git-svn-id: svn://chrome-svn/chromeos/trunk@225 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-13 02:18:53 +00:00
djmm@google.com
4c249eb20f Created branch 22. Update CHROMEOS_VERSION_BRANCH=23
git-svn-id: svn://chrome-svn/chromeos/trunk@222 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-13 00:28:56 +00:00
tedbo@google.com
23eef58c60 Add acpi pacakge for our acpi scripts.
This removes the acpi stuff from customize_rootfs and should make it easier
to do more acpi stuff in the future as needed. We still need to figure out
how to handle acpi across different devices.

Review URL: http://chromereview.prom.corp.google.com/1186038


git-svn-id: svn://chrome-svn/chromeos/trunk@220 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-13 00:04:19 +00:00
djmm@google.com
7ba1563d79 Use git for "revision" if svn is unavailable.
Review URL: http://chromereview.prom.corp.google.com/1186033

git-svn-id: svn://chrome-svn/chromeos/trunk@219 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-13 00:00:16 +00:00
rtc@google.com
b085577b4b Changes the build_all script so that it can be run from outside of the scripts directory
Review URL: http://chromereview.prom.corp.google.com/1186036

git-svn-id: svn://chrome-svn/chromeos/trunk@218 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-12 20:23:33 +00:00
msb@google.com
5c1c3b836d Fix build breakage.
Fixes the following error:

rm: cannot remove `/home/chrome-bot/trunk/src/build/x86/local_packages/linux-image-*.deb': No such file or directory

Review URL: http://chromereview.prom.corp.google.com/1186034

git-svn-id: svn://chrome-svn/chromeos/trunk@215 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-12 19:11:00 +00:00
msb@google.com
64b6dc8db1 kernel: move config into kernel git repo
Already moved config into the kernel git repo. This change fixes the
build to use the config which is in the kernel and removes the configs
in the chromeos repo.

Also removed a lot of the kernel version hard-coding that is in the build.

Review URL: http://chromereview.prom.corp.google.com/1188031

git-svn-id: svn://chrome-svn/chromeos/trunk@214 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-12 18:36:19 +00:00
tedbo@google.com
45ffc9a3de Some customize_rootfs cleanup.
Review URL: http://chromereview.prom.corp.google.com/1186028


git-svn-id: svn://chrome-svn/chromeos/trunk@213 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-12 03:39:50 +00:00
tedbo@google.com
b35803f10c Simplify X session startup. This CL skips the typical Xsession
stuff that parses a bunch of files in favor of just starting
our session script under a console-kit session. We don't need
any of the typical Xsession start stuff and this is simpler to
understand. Since we don't use Xsession.d, we no longer need
to delete certain files from that directory.

The CL also has the login_manager package install our own slim.conf
so that we don't need to be modifying the default one using sed
from customize_rootfs and the login_manager maintainer scripts.

Review URL: http://chromereview.prom.corp.google.com/1188025


git-svn-id: svn://chrome-svn/chromeos/trunk@209 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-12 01:43:08 +00:00
rtc@google.com
ab63574c0e Adds build functionality to the dev server.
A few changes here. 

1. A simple webui for building packages in the source tree. 
2. A shell script that you can run on your netbook to kick of a build of a given package, download the result, and install it. 
3. Refactored update/build functionality into classes so that the build env paths can be shared. 
4. devkit.sh downloads an upsatart task that starts ssh at boot time.

More info in the dev server manual - 
https://docs.google.com/a/google.com/Doc?docid=0AT6qlIKi36JQY2M1Y3B2bWNfMTZkems5eGducg&hl=en

Review URL: http://chromereview.prom.corp.google.com/1187017

git-svn-id: svn://chrome-svn/chromeos/trunk@207 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-12 00:52:08 +00:00
msb@google.com
b79616b77e syslinux: migrate to using a git repo
Review URL: http://chromereview.prom.corp.google.com/1186020

git-svn-id: svn://chrome-svn/chromeos/trunk@205 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-11 23:04:42 +00:00
dhg@google.com
e62feb6d18 Changing the rootfs so that devicekit-disks can create an sqllite table it needs to be able to mount things
Review URL: http://chromereview.prom.corp.google.com/1182001

git-svn-id: svn://chrome-svn/chromeos/trunk@201 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-11 02:11:45 +00:00
skrul@google.com
cadf7da18e Script to send credentials into the cookie pipe, emulating the login manager. This was previously reviewed but checked into the wrong repo.
Review URL: http://chromereview.prom.corp.google.com/1187016

git-svn-id: svn://chrome-svn/chromeos/trunk@196 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-10 00:46:45 +00:00
chocobo@google.com
8bfff9e9d0 Make build script build Chrome instead of Chromium.
Review URL: http://chromereview.prom.corp.google.com/1186013

git-svn-id: svn://chrome-svn/chromeos/trunk@193 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-09 23:49:10 +00:00
rtc@google.com
9ebf71a8ed Stop connecting to googleguest at boot.
We should no longer try to connect to googleguest or another open network at boot time. First time users will need to connect via ethernet to log into the machine. Once a user has logged in for the first time they will be able to login without network connectivty. Also, Connman will automatically connect to any available networks that the user has connected to in the past. 

The long term solution for first time usage is to put the network picker in the login UI. 


Review URL: http://chromereview.prom.corp.google.com/1187008

git-svn-id: svn://chrome-svn/chromeos/trunk@191 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-09 23:07:31 +00:00
cmasone@google.com
631ec89d36 netowork interfaces need to be kept up until the _end_ of customize_rootfs.sh
Review URL: http://chromereview.prom.corp.google.com/1187003


git-svn-id: svn://chrome-svn/chromeos/trunk@180 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-06 21:06:56 +00:00
tedbo@google.com
74a4e3d3cb Fix usb boot issue for the case where usb does not appear as sdb.
We had a bug where we were unable to boot a device where the usb
drive appeared as sdc. This is because it was using our fixed set
of devices needed to start X rather than re-using the devices
that are created in the initrd. This fixes that to re-use the
devices created by udev if we have an initramfs.

This CL also fixes a reboot bug.

Review URL: http://chromereview.prom.corp.google.com/1183002


git-svn-id: svn://chrome-svn/chromeos/trunk@174 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-06 01:02:10 +00:00
tedbo@google.com
cc9a75cffb [shutdown]: Make shutdown faster.
This CL changes the shutdown sequence to be more upstartified.
We switch from using the stock shutdown scripts to a custom
sequence that basically terminates chrome cleanly and then kills
all processes that hold open files on our stateful partition and
crypto-home so that we can unmount them cleanly and shutdown.

The change adds a ui.conf upstart job that lets upstart track
the login manager. Starting the ui will start the login manager
and enable a graphical session; stopping the ui will cleanly
kill chrome and then tear down the graphical session.

Review URL: http://chromereview.prom.corp.google.com/1180066


git-svn-id: svn://chrome-svn/chromeos/trunk@169 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-05 22:10:56 +00:00
tedbo@google.com
9108fb4376 [boot]: Changes to upstartify more of our init scripts.
This changes many of our upstart jobs to use upstart
properly rather than just running the corresponding
scripts in /etc/init.d. The init.d scripts all pull in
helper functions, etc that are mostly unused. These
changes typically go from using many subshells to start
a daemon to a single exec of the daemon with proper
tracking by upstart. Most of these jobs are not in
the critical boot path, but we should still keep them
as optimized as possible.

Review URL: http://chromereview.prom.corp.google.com/1181042


git-svn-id: svn://chrome-svn/chromeos/trunk@164 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-05 00:34:38 +00:00
seanparent@google.com
46aee000d7 Missed this file - minor cleanup.
Review URL: http://chromereview.prom.corp.google.com/1180057

git-svn-id: svn://chrome-svn/chromeos/trunk@163 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-04 23:10:10 +00:00
seanparent@google.com
59a33b64a0 Removed old base and glog, added DEP for chrome/base, cleaned up usage of
namespaces, minor build speed up using -j option for more scons.

Review URL: http://chromereview.prom.corp.google.com/1180018

git-svn-id: svn://chrome-svn/chromeos/trunk@160 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-04 21:04:51 +00:00
adlr@google.com
83bcbe4507 build_image: mount root read-only on USB.
I think read-only is the default, but this makes it explicit.

Review URL: http://chromereview.prom.corp.google.com/1181041


git-svn-id: svn://chrome-svn/chromeos/trunk@159 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-04 21:00:59 +00:00
tedbo@google.com
182c45ee72 Enable image_to_usb to be run from outside the scripts directory.
Review URL: http://chromereview.prom.corp.google.com/1180043


git-svn-id: svn://chrome-svn/chromeos/trunk@154 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-04 03:23:20 +00:00
msb@google.com
3bfc11f2fe Move patches into kernel git tree.
The change for adding the patches to the kernel git tree:

http://chromereview.prom.corp.google.com/1180039

Review URL: http://chromereview.prom.corp.google.com/1181025

git-svn-id: svn://chrome-svn/chromeos/trunk@152 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-03 22:30:10 +00:00
chocobo@google.com
0881d25bf1 Fix build_chrome script to only package up the files that we need. This makes the chrome build much smaller.
Review URL: http://chromereview.prom.corp.google.com/1179031

git-svn-id: svn://chrome-svn/chromeos/trunk@150 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-03 18:23:32 +00:00
djmm@google.com
9025b0aef1 When echo'ing environment from env, check beginning of line to exclude occurences that appear within function definitions.
Review URL: http://chromereview.prom.corp.google.com/1180037

git-svn-id: svn://chrome-svn/chromeos/trunk@145 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-03 01:01:31 +00:00
rtc@google.com
e69130c23a Fixes the function syntax so that chromeos version executes correctly in the chroot.
Review URL: http://chromereview.prom.corp.google.com/1179022

git-svn-id: svn://chrome-svn/chromeos/trunk@143 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-02 22:10:33 +00:00
sleffler@google.com
e448ba3021 Add support for building from a pre-patched kernel src tree (e.g. pulled
from git); to enable set KERNEL_VERSION in your environment to the
directory name (e.g. 2.6.31-chromeos-intel-menlow) otherwise default to
the existing kernel build mechanism

Review URL: http://chromereview.prom.corp.google.com/1180034

git-svn-id: svn://chrome-svn/chromeos/trunk@142 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-02 21:04:52 +00:00
ericli@google.com
6f2c33649e remove a script which has no x bit and add a new one.
The previous CL r137 did not make the trick.

Review URL: http://chromereview.prom.corp.google.com/1181012

git-svn-id: svn://chrome-svn/chromeos/trunk@138 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-30 20:06:45 +00:00
ericli@google.com
bf39181430 Change the x bit for the shell script.
Review URL: http://chromereview.prom.corp.google.com/1180025

git-svn-id: svn://chrome-svn/chromeos/trunk@137 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-30 16:32:31 +00:00