Commit Graph

43 Commits

Author SHA1 Message Date
tedbo
ac0346a9dd Move set of bootstrap /dev devices to /lib/chromiumos/devices.
Rather than pull the initial set from /lib/udev/devices, we
move them to /lib/chromiumos/devices.

We also whitelist the udev maintainer script since we don't need
to have it create devices in /lib/udev/devices and we also do not
need it to create the persistent rules files.

Review URL: http://codereview.chromium.org/552056
2010-01-19 19:41:02 -08:00
Yusuke Sato
c1d3332aed Run dbus-uuidgen on system startup (again).
A few weeks ago, dbus-uuidgen command was removed from the platform/init/dbus.conf script, but after the "upgrade-everything-to-Karmic" change, I think generating the uuid has become mandatorty again.
Without the uuid file (/var/lib/dbus/machine-id), ibus-daemon which uses D-Bus as its IPC channel does not work at all. I'm not sure but possibly the same is true for dbus-daemon?

chronos@localhost:/home/chronos$ ibus-daemon
process 2254: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.

BUG=1127
TEST=On xterm, run /usr/bin/ibus-setup and verify the command does not show an error like "ibus-daemon is not working."

Review URL: http://codereview.chromium.org/508018
2010-01-07 15:36:35 +09:00
tedbo
ccd326b84d Changes to install_packages.sh so that we can master an image without
running maintainer scripts.

This is a work-in-progress. If you build_image like:

EXPERIMENTAL_NO_DEBOOTSTRAP=1 ./build_image.sh

it will skip debootstrap and install the base required packages
without running maintainer scripts. This is about 68 packages that
have lots of interleaved dependencies so it is nasty to trim down.

If you build like:

EXPERIMENTAL_NO_MAINTAINER_SCRIPTS=1 ./build_image.sh

it will install all packages skipping maintainer scripts.

Using these we can try and get things in a state where we can
create an image built of cross-compiled packages.

This is obviously not finished but in this case I prefer to commit
early so others can poke at it.

Review URL: http://codereview.chromium.org/527015
2010-01-06 18:23:50 -08:00
David Moore
9d59051b65 Allow chronos user to renice back to 0
allow the chronos user to renice processes

Review URL: http://codereview.chromium.org/518049
2010-01-06 13:18:27 -08:00
tedbo
2cfa925e59 Add --no-install-recommends when we install most of our components.
Given this we need to explicitly install xterm and lsof, but
otherwise it is a net reduction of about 45 packages, which is nice.

Review URL: http://codereview.chromium.org/515009
2009-12-22 21:44:28 -08:00
tedbo
ab9885ab30 Add the default user to some groups (audio, video).
Review URL: http://codereview.chromium.org/501132
2009-12-18 18:18:58 -08:00
tedbo
9db99b88c1 Modify customize_rootfs.sh to run outside of the target rootfs and to use
only host-based tools. This is a requirement in order to be able to build
a cross-compiled image where the target rootfs is a different arch than
the host.

Review URL: http://codereview.chromium.org/500014
2009-12-16 13:27:31 -08:00
Andrew de los Reyes
0265e49f47 Fonts: add DejaVu, AbyssinicaSIL
Legal signed off on these fonts, which are Ubuntu packages ttf-dejavu,
ttf-sil-abyssinica.

Review URL: http://codereview.chromium.org/465144
2009-12-09 16:35:22 -08:00
David McMahon
20c39616b0 Merge branch 'master' of ssh://chromiumos-git/chromeos 2009-12-09 10:43:11 -08:00
Bill Richardson
ea16938abe fix typo in comment
Review URL: http://codereview.chromium.org/477001
2009-12-09 08:42:56 -08:00
David McMahon
b059e344fc Misc. fixes to versioning. 2009-12-08 18:12:28 -08:00
David McMahon
fc23824e2b Split Continuous/User build and provide useful version information for continuous builder
Review URL: http://codereview.chromium.org/460118
2009-12-08 16:31:45 -08:00
David McMahon
03aeb20079 Revert versioning to original (odd=trunk/dev, even=release) style.
Add handling for third type - continuous builds and (label) appropriately.
2009-12-08 16:30:21 -08: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
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
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
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
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
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
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
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
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
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
adlr@google.com
3ca5eb88a9 xkb: allow it to write to /var/lib/xkb
Long term (when we are compiling the xkb) package, we should put this
change in that package. For now, we create a symlink from /var/lib/xkb
to /var/tmp in customize_rootfs.sh

tedbo@ found the solution. I just did the CL

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


git-svn-id: svn://chrome-svn/chromeos/trunk@124 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-29 21:25:46 +00:00
drewry@google.com
fc13bc2353 Only use pam_mount for slim-based logins. Everything else should avoid touching cryptohome.
Review URL: http://chromereview.prom.corp.google.com/1180003


git-svn-id: svn://chrome-svn/chromeos/trunk@122 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-29 14:46:00 +00:00
adlr@google.com
b3e0d3f9be postinst: don't edit fstab
Review URL: http://chromereview.prom.corp.google.com/1181005

git-svn-id: svn://chrome-svn/chromeos/trunk@120 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-29 02:45:10 +00:00
rtc@google.com
d26178fa7e Adds a local Autoupdate server and a mechanism for adding developer packages.
I've been getting frustrated by juggling usb sticks to constantly update my netbook so I wrote a simple
server that can run in a developer's source tree and serve updates to a netbook. I also added an upstart
task that will download a script from the dev server and run it. I use this to install sshfs, gdb, and vim.

Here's a quick heads up about what has changed. 

1. /etc/lsb-release

I added two new fields to the release file. One is the URL that should be pinged for updates. The other is the URL that can be used to download a developer setup script. 

2. chromeos_version.sh

The functionality for the release build is unchanged, however, developer builds now have a monotonically increasing version number. 

3. software-update.conf

Autoupdate is disabled when the DEV_SERVER field in /etc/lsb-release is initialized. This field won't be set on the build server, but will be set everywhere else. 

4. ping_omaha.sh

The omaha server is now configured by /etc/lsb-release

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

git-svn-id: svn://chrome-svn/chromeos/trunk@92 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-26 22:36:21 +00:00
adlr@google.com
9cb9e73b2f Install: read-only USB, resizable sys partitions
USB image:
- have a stateful partition
- use a read-only system partition

Installer:
- copy read-only system partition from USB to hard drive, skip fsck check
- make stateful partition empty

System:
- Change to tolerate empty stateful partition on bootup
- Don't keep so much of /var on stateful partition (var/lib should be in system
image)

Autoupdate:
- Fix a couple checks to allow partitions 3 and 4 to be system partitions
- Fix a misnomer in mk_memento_images.sh

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

git-svn-id: svn://chrome-svn/chromeos/trunk@87 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-26 18:29:06 +00:00
rspangler@google.com
c9c9d5f2fa Move clearing resolv.conf and interfaces to last, so that they don't
interfere with installing additional pacakages using --pkglist2.

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

git-svn-id: svn://chrome-svn/chromeos/trunk@70 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-19 22:12:35 +00:00
cmasone@google.com
32bdfa9164 init: take unneeded stuff out of the Xsession code pathway
Review URL: http://chromereview.prom.corp.google.com/1175081

git-svn-id: svn://chrome-svn/chromeos/trunk@67 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-19 19:11:45 +00:00
sleffler@google.com
6016663568 Temporary workaround for wireless suspend/resume.
Mark the wlan0 interface down on suspend and back up on resume to
prod connman into action.  The result isn't exactly what we want
as connman won't return to the previous ap if another, previously
visited ap, is found with higher signal strength.  Also this is
very heavyweight, the better behaviour is to simulate a beacon miss
on resume and try to reassociate to the same ap; then roam if that
fails--but getting that behaviour will take more work so add this
for now.
Review URL: http://chromereview.prom.corp.google.com/1175077

git-svn-id: svn://chrome-svn/chromeos/trunk@57 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-16 17:07:56 +00:00
sosa@google.com
a763728b24 Fix the prior workaround
Review URL: http://chromereview.prom.corp.google.com/1173072

git-svn-id: svn://chrome-svn/chromeos/trunk@54 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-15 23:40:41 +00:00
cmasone@google.com
fe04414eea Chrome uploads stats on Linux IFF a file called "Consent To Send Stats" is present in the user's profile. We auto-create this file in official builds, and only official builds.
Review URL: http://chromereview.prom.corp.google.com/1173032

git-svn-id: svn://chrome-svn/chromeos/trunk@35 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-12 20:09:16 +00:00
rspangler@google.com
515a81ee62 Port over changes which occured after the initial snapshot.
git-svn-id: svn://chrome-svn/chromeos/trunk@30 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-10 06:36:20 +00:00
rspangler@google.com
d74220d772 Start copying over source.
git-svn-id: svn://chrome-svn/chromeos/trunk@4 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-09 20:56:14 +00:00