Commit Graph

2152 Commits

Author SHA1 Message Date
Anush Elangovan
2991604b4e Teach build_image to pull from buildbot as necessary when the package is unavailable locally.
TEST=./build_package && ./build_image for x86-generic and voguet20

Review URL: http://codereview.chromium.org/2074019
2010-05-21 10:09:04 -07:00
Chris Sosa
bfabd932e9 Do not delete src_image if --notest_mod is set.
TEST=From an already built image dir, ran archive_build with --notest_mod
set and verified the image had chromiumos_base_image.bin and chromiumos_image.bin.

Review URL: http://codereview.chromium.org/2111015
2010-05-21 09:54:46 -07:00
Nick Sanders
5fa0950681 add optional facory builds to archive_build
Review URL: http://codereview.chromium.org/2084013
2010-05-20 20:37:14 -07:00
Tan Gao
6c84bea17d fix for issue 2610
- add --recovery flag to chromeos-installer script to install a recovery
    image from partition B onto a device's hard drive
  - add temporary workaround to populate partition B to make installer work
  - TODO(tgao): write a script to populate partition B and remove workaround

Review URL: http://codereview.chromium.org/2127010
2010-05-20 13:46:34 -07:00
robotboy
fa08140093 Create a tool to save a pinned dep file for the current sync.
Review URL: http://codereview.chromium.org/2112003
2010-05-20 10:18:55 -07:00
Chris Sosa
d44550272c Cleanup of adding pristine image and fixing of symlinks in developer image.
TEST=Tested with building a new image, looking in the output directory, running
the image and running vi.

Review URL: http://codereview.chromium.org/2075019
2010-05-20 10:14:06 -07:00
Nick Sanders
7c982f7398 Update factory installer, factory test
* Fix build breaks
* Update to work with EFI bios

Review URL: http://codereview.chromium.org/2132008
2010-05-19 22:17:08 -07:00
Amol Kher
9d2a7980cf Fixing DEFAULT and FACTORY mask to exclude usr/lib/debug folder
I verified that if I whack /usr/lib/debug folder and run build_image, it works fine. This is important since I plan to check in this issue first and then the fix to add debug flags.

Review URL: http://codereview.chromium.org/2113007
2010-05-19 17:30:29 -07:00
Tan Gao
6df5aeeebb fix for issue 2610
- add back in RECOVERY variable since we can't specify value "0" in place
    of boolean flag "--recovery"
  - for recovery image, make ROOT-B 1GB, KERN-B 16MB and stateful partition 1GB

Review URL: http://codereview.chromium.org/2133006
2010-05-19 14:19:55 -07:00
Girts Folkmanis
7a8a838350 Fix factory_install build.
- Don't run test image when building factory_image.
- Bump the size for factory_install image to 300MB, as the existing build_image
  overfills the current size.  The size does not really matter, as our SD card
  copying time depends on the size of the contents, not the disk size.

Review URL: http://codereview.chromium.org/2113013
2010-05-18 22:52:25 -07:00
Chris Sosa
9673f3b92e Always build pristine image as well as dev/test image.
TEST=Tested build process.  Tested dev image, test image and base image by booting all three and logging in.

Review URL: http://codereview.chromium.org/2106009
2010-05-18 13:24:40 -07:00
Girts Folkmanis
00f72a3cb2 Do not emerge chromeos-test in factory_install.
Otherwise we overflow the 180MB partition when running ./image_to_usb.sh --factory_install.

Review URL: http://codereview.chromium.org/2108010
2010-05-17 22:10:02 -07:00
David McMahon
f439703f71 Created branch 0.7.42.N. Update CHROMEOS_VERSION_BRANCH=43 2010-05-17 18:17:52 -07:00
Kelly Lucas
3c784f78fe Only kill the dev server when it is started by image_to_live process.
Review URL: http://codereview.chromium.org/1986012
2010-05-17 13:57:30 -07:00
Tom Wai-Hong Tam
f87a3678dd Reduce the size of factory install shim.
Temporary approach to using INSTALL_MASK to suppress some non-relevant paths.
It reduces the size from ~426MB to ~163MB. Eventually, will remove it and
create a clean and separated ebuild for chromeos-factoryinstall.

Review URL: http://codereview.chromium.org/2084001
2010-05-17 16:06:33 +08:00
Bill Richardson
9c5e5ecad3 Use new grub2 variables to boot from the device with the bootloader
See http://codereview.chromium.org/2113004/show for details.

This also adds a script to allow manual selection of the preferred image (A or B).

BUG=none

Review URL: http://codereview.chromium.org/2090006
2010-05-14 17:00:21 -07:00
Chris Sosa
2b6f8d140d Fix modprobe prob in gmergefs and bring call script into scripts
TEST=Ran "gmergefs --remote my_device gmerge" resulted in having
gmerge installed into my /usr/local dir on my device

Review URL: http://codereview.chromium.org/2037006
2010-05-14 12:54:04 -07:00
Chris Sosa
702618ff2b Move to using chromeos-test to emerge test dependencies in mod_image_for_test.
In addition unifies changes in mount_gpt_image and one-offs in mod_image_for_test
to consolidate gpt / var mounting.

Review URL: http://codereview.chromium.org/2064001
2010-05-14 12:52:32 -07:00
David James
3ab9121f97 Add more exceptions to check_deps to allow usage of icedtea.
BUG=none
TEST=Ran test_image on image with icedtea

Review URL: http://codereview.chromium.org/1986005
2010-05-13 11:06:51 -07:00
Chris Masone
162f654c95 disable automounting when inside the chroot
Unfortunately, bind mounting /media inside the chroot did not allow us
to programmatically unmount automounted USB sticks from within the chroot.
Instead, I disable automounting on our corporate desktops when you enter the
chroot.  Your normal setting is restored when you exit the chroot again.

TEST=run gconftool-2 -g /apps/nautilus/preferences/media_automount to print the current value of your automount pref; run this before entering the chroot, outside the chroot while you've got some other terminal that's inside the chroot, and then after exiting the chroot.

Review URL: http://codereview.chromium.org/2029009
2010-05-12 14:58:37 -07:00
Eric Li
9adee78b5c Add an update_url parameter to image_to_live.
So it could update netbook from a dev server hosted on another server.

Review URL: http://codereview.chromium.org/2012011
2010-05-12 11:53:39 -07:00
Olof Johansson
00171bdab6 Add /etc/init.d to INSTALL_MASK
Since we're using upstart, don't let packages drop startup scripts into
/etc/init.d.

BUG=none
TEST=Build image, inspect contents of /etc/init.d (or lack thereof, after this patch)

Review URL: http://codereview.chromium.org/2023006
2010-05-11 11:38:09 -07:00
Chris Masone
99c6a289f4 add the ability to umount automounted devices from within the chroot
Talked to kmixter, and we felt that bindmounting the directory in
which the host os creates mount points for automounted external
devices is the cleanest solution to the inside/outside the chroot problem.
By doing this, image_to_usb can be run from inside the chroot without concern.
That means that (as far as I understand) the factory install flow can all be
done inside the chroot, as well as modding images for test and everything else.

Review URL: http://codereview.chromium.org/1991006
2010-05-11 09:20:00 -07:00
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