Commit Graph

28179 Commits

Author SHA1 Message Date
Chris Sosa
19197c8ac8 Adds a helper script to print out all package dependencies of a given package.
Review URL: http://codereview.chromium.org/1784010
2010-05-10 17:50:33 -07:00
Chris Sosa
3f21b99e37 Dev flag is not used in customize_rootfs and we should not be making dev-specific changes there.
TEST=Built an image

Review URL: http://codereview.chromium.org/2019008
2010-05-10 16:34:47 -07:00
Ken Mixter
ab9bdec984 Fix rootfs size writing
BUG=3125

Review URL: http://codereview.chromium.org/2016005
2010-05-07 11:31:52 -07:00
Eric Li
8a970bcd00 Enhance image_to_live script to really wait till dev server is up and running.
Review URL: http://codereview.chromium.org/2050001
2010-05-07 10:28:50 -07:00
Chris Sosa
3adaa549e0 Only allows mod_image_for_test for default from behavior.
BUG=1970

TEST=Running archive build with clean build and producing
a test image and normal image and zip file.  Also running
with custom from and getting an error code with test_mod=true

This change is required because mod_image_for_test requires it
to be inside chroot.  Since the buildbot is the main user
of this script, this deals with that use case.  Other users
of this script will have to run mod_image_for_test manually
outside of archive_build

Review URL: http://codereview.chromium.org/2008001
2010-05-06 17:52:32 -07:00
Eric Li
18e38c33e6 Enforce image update from image_to_live.
The issue here is if an previous update succeeded but reboot not happen, for what ever unknown reason, this host lost the ability to update again.

I think some of the current update failure in the lab should be caused by this.

Review URL: http://codereview.chromium.org/2031002
2010-05-06 16:47:39 -07:00
Tom Wai-Hong Tam
2acef61815 Change the path of qualified_components to the autotest directory.
So no need of the directory /usr/local/manufacturing/.

Review URL: http://codereview.chromium.org/1816004
2010-05-06 14:14:02 +08:00
Nick Sanders
7789d34e97 Allow factory install shim to be overlay installed
Make standalone package for factory install, so it can be overlayed on top of an existing image.
Modify mod_image_for_test to do the overlay.

Review URL: http://codereview.chromium.org/1945004
2010-05-05 21:21:15 -07:00
Chris Sosa
b9f2d2ecbd Flag day flip of statefuldev
Review URL: http://codereview.chromium.org/1989001
2010-05-05 16:42:44 -07:00
Darin Petkov
364a2ce5d5 Add some basic tests for metrics_daemon.
A separate CL adds a test stanza to the metrics ebuild. More tests
(specifically, for the D-Bus MessageFilter) will also come in a
separate CL.

Review URL: http://codereview.chromium.org/1919005
2010-05-05 16:06:37 -07:00
Ken Mixter
f915104513 Add crash_reporter functionality
BUG=2616,2617

Review URL: http://codereview.chromium.org/1702008
2010-05-05 14:14:09 -07:00
Sean O'Connor
a5351aa563 Adjust image_to_live's devserver flags to work around lab network port restrictions.
Review URL: http://codereview.chromium.org/1967002
2010-05-04 18:43:32 -07:00
Don Garrett
640a0585f5 Added restart_in_chroot_if_needed to common.sh.
Add restart_in_chroot_if_needed to common.sh, and modify the build scripts which referred to assert_inside_chroot to use it instead. The effect is that you don't ever have to explicitly enter_chroot.sh to build (still can, it work's fine).

Update mod_image_for_test.sh to use restart_in_chroot_if_needed

Review URL: http://codereview.chromium.org/1736025
2010-05-04 16:54:28 -07:00
Chris Sosa
c1214dc327 Rename update script and update some documentation.
Review URL: http://codereview.chromium.org/1912005
2010-05-04 16:17:49 -07:00
Chris Sosa
5c37ce2e03 Modifies dev server to produce stateful gzip and modify image_to_live to use it.
TEST=Tested with image_to_live, memento_updater without image_to_live

This mimics the update process of the real image for the stateful partition.
By moving this the update into a separate script, I can add it to the gmerge
package such that developers will not have to use image_to_live.  This change
also removes the dependency on tar.

Review URL: http://codereview.chromium.org/1774021
2010-05-03 20:18:02 -07:00
Chris Masone
5543339140 Generate testing SSL cert on the fly; install into nssdb correctly
Review URL: http://codereview.chromium.org/1750022
2010-05-03 08:32:06 -07:00
Nathan Williams
219bbebef2 Adjust backchannel network setup to require explicit enabling
on the device under test and to use a not-normally-generated interface name, so that use of add-on ethernet devices is not affected in normal operation.

BUG=2962, 2941

(dup of 1810013, git goofiness)

Review URL: http://codereview.chromium.org/1826003
2010-04-30 19:24:02 -04:00
Eric Li
66659791ce Die out autotest script if there is no board parameter specified.
BUG=3017

Review URL: http://codereview.chromium.org/1763025
2010-04-30 15:58:35 -07:00
Chris Sosa
f4f6ad47b3 Revert http://codereview.chromium.org/1818001 so that archived build can produce test images
Review URL: http://codereview.chromium.org/1812008
2010-04-30 15:48:52 -07:00
Chris Sosa
257117d2cc Cleans up image_to_live changes and handles errors more gracefully
TEST=Tested by running image_to_live with correct formated images as well
as images that are missing either /var or dev_image directories.

Review URL: http://codereview.chromium.org/1705023
2010-04-30 12:41:59 -07:00
robotboy
b75eee3d67 Add --bootargs option to build_image.
This allows appending extra kernel command line parameters to
the ARM kernel command line on the Voguev210 boards.

BUG=None
TEST=Built image

Review URL: http://codereview.chromium.org/1694021
2010-04-30 09:51:23 -07:00
Nick Sanders
1bec876896 Clean upstart for factory test
* Leave ui.conf there, not run by default.
* dump autotest log into /dev/tty1
* Don't let tty1 eat keayboard events.

Review URL: http://codereview.chromium.org/1742018
2010-04-29 21:51:25 -07:00
Chris Sosa
c5e880f7db Force mod_image_for_test to run inside chroot if outside
Review URL: http://codereview.chromium.org/1818001
2010-04-29 16:19:05 -07:00
Chris Sosa
0e8b0a71c2 Adds a script to unmount any mount points in your boards image dir and free loopback devices
Review URL: http://codereview.chromium.org/1759015
2010-04-29 14:05:30 -07:00
Chris Sosa
bde8c1bccc Harden build_image to not lose loopback devices.
Review URL: http://codereview.chromium.org/1794007
2010-04-29 14:02:35 -07:00
Chris Sosa
5d8ed6de6a adds default board to get_latest_image
Review URL: http://codereview.chromium.org/1702014
2010-04-29 10:23:24 -07:00
Darin Petkov
96a4f21ee3 Color by default only if TTY stdout. Recurse into results directories.
Review URL: http://codereview.chromium.org/1756017
2010-04-29 09:51:42 -07:00
Tom Wai-Hong Tam
bf772cffaa Skip dropping caches in each test and between iterations during factory tests.
Dropping caches (writing back all dirty pages to disk and clearing all the caches) is not necessary for factory tests. It can reduce the latency significantly. The scale is about 27s -> 3s, for running 2 empty tests.

Review URL: http://codereview.chromium.org/1780011
2010-04-29 14:57:37 +08:00
Anton (whywhat) Vayvod
9ffc3b32a3 Added --test_args parameter that passes its value as -a flag to autoserv.
Review URL: http://codereview.chromium.org/1794004
2010-04-28 21:51:16 +04:00
Tom Wai-Hong Tam
d036780bd1 Make modify-image-for-factory scripts more readable.
Review URL: http://codereview.chromium.org/1755012
2010-04-28 18:50:02 +08:00
Chris Sosa
48768d8763 TBR: Missed last commit for image_to_live in last push 2010-04-27 15:48:09 -07:00
David McMahon
9cc8f95a65 Don't assume this is run from the chroot and point explicity to it.
Add an echo to report the action from that part of the script.

Review URL: http://codereview.chromium.org/1699015
2010-04-27 13:49:06 -07:00
Chris Sosa
ef96430135 Changes to image_to_live to copy stateful partition over
Review URL: http://codereview.chromium.org/1784006
2010-04-27 13:21:08 -07:00
Chris Masone
86e28fd1d9 Generate testing certs on the fly
Review URL: http://codereview.chromium.org/1701016
2010-04-27 11:06:12 -07:00
Bill Richardson
041bd71932 Add more choices to grub2 menu.
This adds some '/dev/sdb' options to the grub2 menu, so that we can keep the
default boot partition /dev/sda3 while still using the USB key as a recovery
image. This is work in progress for EFI BIOS development.

Review URL: http://codereview.chromium.org/1706014
2010-04-27 09:36:14 -07:00
robotboy
152a1ab50d Add a bind mount of /dev to the chroot.
This is useful for various JTAG and fastboot based flashing of
targets.  It is also useful in that we will now have access to
USB card readers and mass storage devices inside the chroot.

BUG=None
TEST=Enter and exit the chroot cleanly.

Review URL: http://codereview.chromium.org/1711016
2010-04-26 14:07:27 -07:00
Daniel Erat
dd9818aaad build: Get rid of scary /dev/sdb defaults in scripts.
Choosing a default device is no good; the user should
tell us where the image should be written.

BUG=none
TEST=wrote an image

Review URL: http://codereview.chromium.org/1730012
2010-04-26 09:16:44 -07:00
Daniel Erat
89b029c7c0 build: Re-hide pointless question in image_to_usb.sh --test_image.
Undoes a change from 5c3b457f.  Hardcoding "--yes" in the
call to mod_image_for_test.sh instead of inheriting
image_to_usb.sh's "yes" was intentional.  The user may not
pass --yes to image_to_usb.sh since they want to confirm
that they're writing to the correct device, but they already
told us that they want the image to be modified for test
with --test_image, so there's no reason to ask about it
again.

BUG=none
TEST=ran it

Review URL: http://codereview.chromium.org/1736005
2010-04-22 13:59:07 -07:00
Ken Mixter
565b11316a Support grabbing gpt-style images from buildbot
Review URL: http://codereview.chromium.org/1716003
2010-04-21 17:50:33 -07:00
Chris Sosa
6975c665d8 Only cache sudo if outside chroot
Review URL: http://codereview.chromium.org/1709005
2010-04-21 15:39:02 -07:00
robotboy
32ddb4282f Only search for the gpt tool if we need it.
Review URL: http://codereview.chromium.org/1747005
2010-04-21 14:46:00 -07:00
Nasser Grainawi
cb5f3ebe52 Retry N-1 times with the --jobs flag, then drop it
Review URL: http://codereview.chromium.org/1545043
Patch from Nasser Grainawi <nasserg@quicinc.com>.
2010-04-21 08:46:49 -06:00
Yusuke Sato
e5b9621b89 Revert "Only search for the gpt tool if we need it."
This reverts commit c8f8d220a2cdb3cd5b464859de38c8504403e6d1.
2010-04-21 10:46:59 +09:00
David McMahon
e707c1d4e7 Fix name of test image from autotest archive.
Review URL: http://codereview.chromium.org/1711005
2010-04-20 18:03:51 -07:00
robotboy
3e9204c315 Only search for the gpt tool if we need it.
Review URL: http://codereview.chromium.org/1604041
2010-04-20 17:17:03 -07:00
Andrew de los Reyes
ba9af725d1 tracker/spreadsheet tool: Improve tracker to spreadsheet migration.
Migrate only issues that are open or that are already in the
spreadsheet. This way, the spreadsheet doesn't get cluttered w/ closed
tasks.

Review URL: http://codereview.chromium.org/1734001
2010-04-20 16:28:37 -07:00
Chris Sosa
fb78b42940 New helper script to mount (and umount) gpt image into image_dir/rootfs and mount /var, /usr/local
Review URL: http://codereview.chromium.org/1648018
2010-04-19 14:56:18 -07:00
Chris Masone
127c3bfa2b Add testing root certs to an nssdb on the rootfs.
After discussing with drewry, we can't come up with a better way to inject these root certs.  We considered putting them on the stateful partition, but that opens up an avenue of attack (if you can get a root cert into the magic directory, then you can MITM login).  Thus, we put it on the rootfs instead.  The script that sets up the hashes for vboot will verify that this directory is not present in production images.  That work is tracked here: http://code.google.com/p/chromium-os/issues/detail?id=2693

Review URL: http://codereview.chromium.org/1566055
2010-04-19 14:26:14 -07:00
Nick Sanders
3c8023380e Allow boot directly into mfg test.
Add feature to mod_image_for_test to patch rootfs.
Change initctl path to get network but no chrome.
./image_to_usb.sh --install_mfg --install_autotest --test_image
which calls ./mod_image_for_test.sh --manuf

Review URL: http://codereview.chromium.org/1542011
2010-04-16 19:53:55 -07:00
David McMahon
acee63274c Created branch release_40. Update CHROMEOS_VERSION_BRANCH=41 2010-04-16 15:20:51 -07:00