chromiumos/platform/memento_softwareupdate.git
14 months agoAdd a new memento update - disk image installer 31/66631/9 master
Chun-Yen Ho [Thu, 22 Aug 2013 09:37:19 +0000 (17:37 +0800)]
Add a new memento update - disk image installer

Disk image installer is for installation from image files on disk.

Currently this support install from image and install from .zip file
containing only 1 image. Installing from compressed file of other format
may be added in the future.

BUG=chrome-os-partner:21938
TEST=Pass Unit Test

Change-Id: I759d3f648b6fefdf081df3df7b3fd3180b4738f0
Reviewed-on: https://gerrit.chromium.org/gerrit/66631
Commit-Queue: Chun-Yen Ho <chho@chromium.org>
Reviewed-by: Chun-Yen Ho <chho@chromium.org>
Tested-by: Chun-Yen Ho <chho@chromium.org>
14 months agoAdd a function for simultaneous read and write 54/66054/9
Chun-Yen Ho [Fri, 16 Aug 2013 05:36:35 +0000 (13:36 +0800)]
Add a function for simultaneous read and write

To avoid using extra disk space, we want to read and write
data simultaneously.
A function is add to achieve this goal via  fork() and pipe()
system calls.
Corresponding unit tests are also changed for compatibility.

BUG=chrome-os-partner:21938
TEST=Pass Unit Test

Change-Id: Ia08365b93a171e72fd54ee83ff9f1eced19ea29f
Reviewed-on: https://gerrit.chromium.org/gerrit/66054
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Chun-Yen Ho <chho@chromium.org>
Tested-by: Chun-Yen Ho <chho@chromium.org>
14 months agoAdd a new memento updater - general installer 32/65932/6
Chun-Yen Ho [Thu, 15 Aug 2013 02:43:56 +0000 (10:43 +0800)]
Add a new memento updater - general installer

We want to create a new general purpose memento_updater that are capable
of handling all kinds of download/install request.

The general installer is the root class of installer, able to install
image and do post processing, to be inherit by specific purpose
installers.

BUG=chrome-os-partner:21938
TEST=Pass Unit Test

Change-Id: I58b7405f8186273accb9044d6244c55e8d32f0e7
Reviewed-on: https://gerrit.chromium.org/gerrit/65932
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Chun-Yen Ho <chho@chromium.org>
Commit-Queue: Chun-Yen Ho <chho@chromium.org>

20 months agoUse 'id' instead of 'whoami' to determine user identity 19/41919/2 factory-4128.B factory-4290.B factory-4455.B factory-pit-4280.B factory-pit-4390.B factory-pit-4471.B factory-spring-3842.B factory-spring-4131.B factory-spring-4262.B firmware-falco_peppy-4389.B firmware-leon-4389.26.B firmware-pit-4482.B firmware-spring-3824.4.B firmware-spring-3824.55.B firmware-spring-3824.84.B firmware-spring-3824.B firmware-spring-3833.B firmware-wolf-4389.24.B release-R26-3701.B release-R27-3912.B release-R28-4100.B release-R29-4319.B release-R30-4537.B stabilize-3658.0.0 stabilize-3701.30.0 stabilize-3701.30.0b stabilize-3701.46.B stabilize-3701.81.B stabilize-3881.0.B stabilize-3912.79.B stabilize-4008.0.B stabilize-4035.0.B stabilize-4068.0.B stabilize-4100.38.B stabilize-4255.B stabilize-4287.B stabilize-4443.B stabilize-4512.B stabilize-bluetooth-smart stabilize-spring-4100.53.B toolchain-3701.42.B toolchainA toolchainB
Vic Yang [Thu, 24 Jan 2013 09:04:51 +0000 (17:04 +0800)]
Use 'id' instead of 'whoami' to determine user identity

'whoami' is missing in some environment such as initramfs. Let's use
'id' instead.

BUG=chrome-os-partner:17368
TEST=Factory install.

Change-Id: Ibdbcd58f7759944616a3e08c8e5fded7ceeeca33
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/41919
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
23 months agoCreate directory before writing updater logfile. factory-3536.B release-R25-3428.B stabilize-3428.110.0 stabilize-3428.149 stabilize-3428.149.B stabilize-3428.193 stabilize2 toolchain-3428.65.B
Shawn Nematbakhsh [Fri, 26 Oct 2012 00:37:26 +0000 (17:37 -0700)]
Create directory before writing updater logfile.

Fix factory install shim install from legacy bios where /var/log does
not exist when we attempt to write the logfile.

BUG=chrome-os-partner:15661
TEST=build install shim, test install on x86 BIOS.

Change-Id: Ie33e36e724f5f2c8340e3089559035efa342e1ae
Reviewed-on: https://gerrit.chromium.org/gerrit/36621
Commit-Ready: Shawn Nematbakhsh <shawnn@google.com>
Tested-by: Shawn Nematbakhsh <shawnn@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
2 years agoCreate folder when generating Omaha ID file factory-2305.B factory-2338.B factory-2368.B factory-2394.B factory-2460.B factory-2475.B factory-2569.B factory-2717.B factory-2723.14.B factory-2846.B factory-2848.B factory-2914.B factory-2985.B factory-2993.B factory-3004.B firmware-butterfly-2788.B firmware-link-2348.B firmware-link-2695.2.B firmware-link-2695.B firmware-parrot-2685.B firmware-snow-2695.90.B firmware-snow-2695.B firmware-stout-2817.B release-R20-2268.B release-R21-2465.B release-R22-2723.B release-R23-2913.B stabilize stabilize-daisy stabilize-link stabilize-link-2913.278
Vic Yang [Mon, 7 May 2012 03:11:48 +0000 (11:11 +0800)]
Create folder when generating Omaha ID file

If the folder does not already exist, create it when generating Omaha ID
file.

BUG=chrome-os-partneri:9507
TEST=Build install shim and successfully install.

Change-Id: I3143369a5ae5043831529db429a92cf2561f8f55
Reviewed-on: https://gerrit.chromium.org/gerrit/21946
Reviewed-by: Rong Chang <rongchang@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
2 years agoChange to use new location of shflags factory-1987.B release-R18-1660.B release-R19-2046.B
Sonny Rao [Wed, 19 Oct 2011 04:46:46 +0000 (21:46 -0700)]
Change to use new location of shflags

BUG=chromium-os:21742
TEST=manual verify this works with new dev-utils/shflags package

Change-Id: Ieaa4fefb02353923d3197b2ef221e42d530d71cd
Reviewed-on: https://gerrit.chromium.org/gerrit/10376
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
2 years agoUse ext4 format for stateful partition factory-1412.B release-R17-1412.B
Paul Taysom [Fri, 4 Nov 2011 17:16:57 +0000 (10:16 -0700)]
Use ext4 format for stateful partition

This is final step in ext4 conversion. We have been running with
the ext4 file system but ext3 format for several weeks. This changes
uses the ext4 format for the stateful partition.

BUG=chromium-os:20012
TEST=Ran ext4 on all platforms

Change-Id: Iac104517976ff531afa81994d9a6c8241229e4d6
Reviewed-on: https://gerrit.chromium.org/gerrit/11218
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Paul Taysom <taysom@google.com>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Ready: Paul Taysom <taysom@google.com>

3 years agomemento_updater: support downloading non-block-device content 0.14.811.B 0.15.877.B 780.B factory-1020.B factory-1235.B factory-1284.B factory-980.B firmware-881-u-boot-v1 firmware-kiev-2.112.B firmware-u-boot-v1 firmware-uboot_v2-1299.B release-1011.B release-R16-1193.B test-982.B
Hung-Te Lin [Wed, 1 Jun 2011 12:11:09 +0000 (20:11 +0800)]
memento_updater: support downloading non-block-device content

A new parameter --[no]check_block_device is introduced to support channels for
non-block-device like firmware or HWID updaters.

This CL depends on http://gerrit.chromium.org/gerrit/1827 .

Firmware updater execution logic is also removed, to generalize the processing
of non-block-device channels

BUG=chrome-os-partner:4276
TEST=see http://gerrit.chromium.org/gerrit/1827

Change-Id: Ib401f208f7685d51ceda8ce4b0a41e1c054f11ae
Reviewed-on: http://gerrit.chromium.org/gerrit/1887
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
3 years agoAdd parsing for the board flag throughout memento 0.13.558.B 0.13.587.B
Kris Rambish [Tue, 24 May 2011 00:42:59 +0000 (17:42 -0700)]
Add parsing for the board flag throughout memento

BUG=chromium-os:15670
TEST=manual

Change-Id: I322dc0f96fa1dd81a2736fe67b03136c2565a7b4
Reviewed-on: http://gerrit.chromium.org/gerrit/1414
Tested-by: Dave Tu <dtu@chromium.org>
Reviewed-by: Dave Tu <dtu@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
3 years agomemento_updater: reduce message flood by controlling wget output format 0.12.433.B 0.12.433.B109 0.12.433.B62 0.13.434.B 0.13.509.B
Hung-Te Lin [Fri, 15 Apr 2011 01:16:49 +0000 (09:16 +0800)]
memento_updater: reduce message flood by controlling wget output format

In factory download stage, it's really hard to find out the error and catch
messages in time because wget simply floods the screen.

Memento updater usually downloads large files (hundreds of mega bytes),
so using --progress=dot:mega should be better.

BUG=none
TEST=create factory install shim, run with factory process;
     seeing the dots in a slower speed.

Change-Id: I5483e50765d49bdc0c12387c82eacfd6a64c66da

R=adlr@chromium.org

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

3 years agofactory_installer: force updating firmware in factory install mode. 0.12.369.B 0.12.392.B
Hung-Te Lin [Wed, 6 Apr 2011 04:38:20 +0000 (12:38 +0800)]
factory_installer: force updating firmware in factory install mode.

Factory test images (and install shims) are configured with
"leave_firmware_alone" because they may contain firmware blobs that are
different from the real version to install.

So we have to explicitly assign the "force" flag when factory installer is
trying to update the firmware to the assigned version (by make_factory_package
--firmwareupdate).

BUG=chrome-os-partner:3152
TEST=built a factory install shim, then
     make_factory_package --... --firmware_updater=xxx,
     and see firmware update messages on verbose progress log.

Change-Id: I913957e0abd2acdd1191f5c4c98c352eed50bf95

R=rspangler@chromium.org,wfrichar@chromium.org

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

3 years agoRemove unused variable ROOT_DEV
Che-Liang Chiou [Mon, 4 Apr 2011 07:34:42 +0000 (15:34 +0800)]
Remove unused variable ROOT_DEV

R=adlr@chromium.org
BUG=chromium-os:12192
TEST=run factory install successfully

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

Change-Id: Ia8c2b51db570da6aeeec170e5f74b48ff8b22998

3 years agomemento_softwareupdate: fix split_write error "bad file descriptor" 0.12.362.B
Hung-Te Lin [Sat, 2 Apr 2011 08:14:51 +0000 (16:14 +0800)]
memento_softwareupdate: fix split_write error "bad file descriptor"

The split_write didn't return file descriptor. Compilers with different code
generator and different configuration (optimization/security/...) may cause
different results, that's why we didn't catch this until very recently.

BUG=chrome-os-partner:3013
TEST=on R12, factory_install.sh runs successfully.

Change-Id: Icbc18757ece105035f70598642332191381719c8

R=clchiou@chromium.org,adlr@chromium.org

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

3 years agoRemove superfluous security check 0.11.257.B 0.11.257.B90
Nick Sanders [Thu, 3 Mar 2011 04:34:50 +0000 (20:34 -0800)]
Remove superfluous security check

BUG=chrome-os-partner:2242
TEST=will test

Change-Id: Id1e8606b77cc2787914456dc0ef7e7caa55d434d

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

3 years agoBreak out omaha server detection.
Nick Sanders [Thu, 16 Dec 2010 03:29:54 +0000 (19:29 -0800)]
Break out omaha server detection.

Requires
 http://codereview.chromium.org/5400003/
 http://codereview.chromium.org/5873001/
BUG=chrome-os-partner:1761
TEST=Install sets time, fails on incorrect host or port.

Change-Id: Ib93e128ec82eaa81199a31099999b9512bbf8851

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

3 years agoDon't exec firmware updater, call it with sh
Nick Sanders [Fri, 29 Oct 2010 02:25:21 +0000 (19:25 -0700)]
Don't exec firmware updater, call it with sh

BUG=8376
TEST="factory install some firmware"
Change-Id: I42ffb2966bf6cd8eb21e26d279f9c541e177a3a1

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

4 years agoNo more suid_exec
Nick Sanders [Mon, 25 Oct 2010 21:39:56 +0000 (14:39 -0700)]
No more suid_exec

BUG=8005
TEST="run factory installer (TBD)"

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

Change-Id: If07c8f8fc5d42b92b7ef6d6978efe8cd6a8be451

4 years agoFixes return code capture that got lost with the addition of 'cat'
Nick Sanders [Sat, 11 Sep 2010 08:05:59 +0000 (01:05 -0700)]
Fixes return code capture that got lost with the addition of 'cat'

BUG=6612,chrome-os-partner:1057

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

Change-Id: Idfa91b9588b0b606c72f64c2febcaf7f4a283772

4 years ago* Move writeable lsb-release to an emerge friendly location.
Nick Sanders [Thu, 9 Sep 2010 04:33:38 +0000 (21:33 -0700)]
* Move writeable lsb-release to an emerge friendly location.
* See also: http://codereview.chromium.org/3345014/show

BUG=6373,6374
TEST=Boot install shim, with customized miniomaha setting. Boot w/ buildbot install wedge.

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

Change-Id: I35494310dee3f829889784b10c58ceafd6a957b9

4 years agoWe don't need update_firmware flag in memento_updater anymore.
Hung-Te Lin [Thu, 9 Sep 2010 02:13:08 +0000 (10:13 +0800)]
We don't need update_firmware flag in memento_updater anymore.

The firmware update from factory_installer.sh is now changed to using
IS_FACTORY_INSTALL=1 and default settings in postinst so we don't need the
argument to control firmware update in memento_updater anymore.

Removing this argument helps to clairify the decision path
of firmware updating logic.

BUG=chromium-os:5587
TEST=same as http://codereview.chromium.org/3365012

Change-Id: I4534c3700d74b0301b27054bba8ef805ed892570

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

4 years agoMount rootfs readonly
Nick Sanders [Tue, 31 Aug 2010 04:34:44 +0000 (21:34 -0700)]
Mount rootfs readonly

Change-Id: I027d68bd070cb41d2954bba39ef2121957187c6f

BUG=6260
TEST=ran it, worked

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

4 years agoUpdate: Fix memento_updater.sh for MMC block devices.
Kenneth Waters [Mon, 16 Aug 2010 20:20:55 +0000 (13:20 -0700)]
Update: Fix memento_updater.sh for MMC block devices.

BUG=1150
TEST=Forced update on tegra2_dev-board

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

4 years agoSupport update_firmware flag in memento update.
repo sync [Fri, 13 Aug 2010 05:47:15 +0000 (13:47 +0800)]
Support update_firmware flag in memento update.

To reflect the change of the update_firmware flag in postinst: http://codereview.chromium.org/3116005.

This change is together with http://codereview.chromium.org/3116008

TEST=factory install process and firmware update

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

Change-Id: Ia25ae56de67b17900c1772460820ee17cb1d1df6

4 years agomemento updated firmware unpack and install doesn't return status to ensure update...
Nick Sanders [Mon, 9 Aug 2010 19:02:18 +0000 (12:02 -0700)]
memento updated firmware unpack and install doesn't return status to ensure update suceeded, and uses an incorrect path in some cases.

BUG=5474
TEST=Factory install a shellball: PASS, fail factory install a shellball: AU fail.

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

4 years agoAdd LICENSE file
J. Richard Barnette [Thu, 5 Aug 2010 21:13:48 +0000 (14:13 -0700)]
Add LICENSE file

4 years agoTBR: nsanders@chromium.org
Colin Chow [Fri, 2 Jul 2010 20:11:37 +0000 (13:11 -0700)]
TBR: nsanders@chromium.org

Change-Id: I6a402490abe8a34398d17bc968cbf37d02ce8daa

4 years agoFix result code propogation
Nick Sanders [Wed, 30 Jun 2010 19:34:45 +0000 (12:34 -0700)]
Fix result code propogation

BUG=None
TEST="Check that result code is propagated, and factory install can detect failure to connect. Check that software updater is unaffected by result code"

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

4 years agoPack firmware into an image and do update in factory install (separated git).
Tom Wai-Hong Tam [Tue, 15 Jun 2010 02:03:27 +0000 (10:03 +0800)]
Pack firmware into an image and do update in factory install (separated git).

Since different platforms have different instructions to update their firmware.
In order not to depend on the install shim, we pack all firmware update files
into a single file, i.e. an executable shell script with embedded files.

The original CL (http://codereview.chromium.org/2366001) is reviewed and is
broken down into 5 CLs. This is one of them.

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

4 years agoSetup code review inheritance
Anush Elangovan [Sat, 5 Jun 2010 20:12:30 +0000 (13:12 -0700)]
Setup code review inheritance

Change-Id: I382e184252e4627f13e026ffba1dee0941fc4456

4 years agoUpdate factory installer, factory test
Nick Sanders [Thu, 20 May 2010 05:17:08 +0000 (22:17 -0700)]
Update factory installer, factory test
* Fix build breaks
* Update to work with EFI bios

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

4 years agoUpdate developer version string parsing to accomodate additional underscore delimeters
Vincent Scheib [Tue, 18 May 2010 21:57:39 +0000 (14:57 -0700)]
Update developer version string parsing to accomodate additional underscore delimeters

This is a change in advance of actually changing the version number. That change will be delayed ~1 week.

BUG=3356
TEST=Run memento_updater.sh and update from chrome about page successfully.

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

4 years agoDev Server: Require Memento Updater
Andrew de los Reyes [Sat, 8 May 2010 00:08:17 +0000 (17:08 -0700)]
Dev Server: Require Memento Updater

Memento Updater: transmit new updaterversion tag so update server know
which update client this is.

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

4 years agoAllow boot directly into mfg test.
Nick Sanders [Sat, 17 Apr 2010 02:53:55 +0000 (19:53 -0700)]
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

4 years agoParameterized server URL omaha updates.
Sean O'Connor [Tue, 13 Apr 2010 22:25:03 +0000 (15:25 -0700)]
Parameterized server URL omaha updates.

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

4 years agofactory installer: install state, oem partitions
Andrew de los Reyes [Mon, 12 Apr 2010 17:40:05 +0000 (10:40 -0700)]
factory installer: install state, oem partitions

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

4 years agoNew Full AU Format w/ support for kernel partition.
Andrew de los Reyes [Fri, 9 Apr 2010 23:07:37 +0000 (16:07 -0700)]
New Full AU Format w/ support for kernel partition.

The old format was: gzip(root filesystem). The new format is:
gzip(kernel parition length + kernel partition + root filesystem). The
length is 8 bytes (uint64 big endian).

This CL fixes the updater and the update generator to support the new
format.

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

4 years agoFactory Installer.
Andrew de los Reyes [Thu, 8 Apr 2010 22:58:17 +0000 (15:58 -0700)]
Factory Installer.

Change build_image to support building a factory install image. Also,
a shell script and startup script to run the factory installer.

Change software_update startup script to detect if it's a factory
install and abort if so.

BUG=2378,2379,2380
TEST=Tested factory install worked on device.
Wrapper script to perform factory install at boot.

AU: New arg to install on non-boot device partition. This is used to
install in the factory. Also, switch to shflags for argument parsing.

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

4 years agobuild: Delete files from the previous build system.
Daniel Erat [Tue, 6 Apr 2010 21:53:55 +0000 (14:53 -0700)]
build: Delete files from the previous build system.

There are other files in sub-repos that I'll delete
in separate changelists.

BUG=none
TEST=built an image using portage

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

4 years agotest-fixet: Automated VMWare test of AutoUpdate
Andrew de los Reyes [Thu, 1 Apr 2010 22:24:21 +0000 (15:24 -0700)]
test-fixet: Automated VMWare test of AutoUpdate

Fully automated test that uses vmplayer to test updating from
dev-channel -> image-under-test -> rollback to dev-channel.

Also, change to vmware image generation so that vmware images are
generated with two 1-GiB sized root partitions

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

4 years agoSwitch to GPT-format disk images.
Bill Richardson [Tue, 30 Mar 2010 21:17:34 +0000 (14:17 -0700)]
Switch to GPT-format disk images.

This changes the disk image for both USB keys and hard-drive installs to use
the EFI GUID Partition Tables. This is a prequisite for booting with an EFI
BIOS. This change does not use the EFI Boot protocol; it still boots using
Legacy BIOS. The PMBR contains syslinux' gptmbr.bin, which searches the GPT
for a specified partition's GUID to boot.

I've tested it on my EeePC. The USB image works, chromeos-install works, and
the reimaged hard drive works. I have not yet tested the memento_updater.sh
script, but I wanted to start the review without waiting until it's all perfect.
I will also be refactoring build_gpt.sh and chromeos-install to share common
logic.

It's almost certain that all existing dogfood machines will need to be
reimaged from a USB key. We could probably figure out a way to upgrade
automatically, but not quickly or without risk.

In addition to the GPT formatting, the build_image script has changed to
emit a single usb.bin file. This can be copied directly onto a USB key and
booted. Installation of dev tools needs to happen with build_image, not
image_to_usb. I have not yet looked at the other image_to_* scripts.

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

4 years agoAdds additional overrides for autoupdating.
Andrew de los Reyes [Thu, 11 Mar 2010 00:13:03 +0000 (16:13 -0800)]
Adds additional overrides for autoupdating.

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

4 years agocollect local version correctly for ping_omaha
Sam Leffler [Wed, 24 Feb 2010 00:01:05 +0000 (16:01 -0800)]
collect local version correctly for ping_omaha

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

4 years agoAU: fixes for chrome and SUID executor
Andrew de los Reyes [Mon, 22 Feb 2010 19:05:16 +0000 (11:05 -0800)]
AU: fixes for chrome and SUID executor

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

4 years agofixup autoupdate for new build system
Sam Leffler [Thu, 18 Feb 2010 17:58:42 +0000 (09:58 -0800)]
fixup autoupdate for new build system

- write board is to /etc/lsb-release
- send board id to omaha
- require board to find latest image

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

4 years agomemento_softwareupdate: Switch to new packaging style
Colin Watson [Tue, 5 Jan 2010 20:45:52 +0000 (20:45 +0000)]
memento_softwareupdate: Switch to new packaging style

Use dh(1).

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

4 years agoadd -f option to force a client update
Sam Leffler [Tue, 22 Dec 2009 21:20:53 +0000 (13:20 -0800)]
add -f option to force a client update

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

4 years agoau: Fix octal-looking version number handling in memento_updater.sh.
derat@google.com [Fri, 4 Dec 2009 17:55:45 +0000 (17:55 +0000)]
au: Fix octal-looking version number handling in memento_updater.sh.

I've been seeing (usually harmless?) errors like:

  memento_updater.sh: line 197: printf: 015900: invalid number

when autoupdating, depending on the time of day when I did the build.

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

git-svn-id: svn://chrome-svn/chromeos/trunk@333 06c00378-0e64-4dae-be16-12b19f9950a1

4 years agoSince postinst is part of installer, the software updater
tedbo@google.com [Mon, 16 Nov 2009 19:09:06 +0000 (19:09 +0000)]
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

4 years agoAU: Use upstart; check every 30 min
adlr@google.com [Mon, 9 Nov 2009 18:40:26 +0000 (18:40 +0000)]
AU: Use upstart; check every 30 min

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

git-svn-id: svn://chrome-svn/chromeos/trunk@186 06c00378-0e64-4dae-be16-12b19f9950a1

4 years agoAU: Flush caches after setting up new partition
adlr@google.com [Mon, 2 Nov 2009 19:36:36 +0000 (19:36 +0000)]
AU: Flush caches after setting up new partition

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

git-svn-id: svn://chrome-svn/chromeos/trunk@140 06c00378-0e64-4dae-be16-12b19f9950a1

4 years agoAdds a local Autoupdate server and a mechanism for adding developer packages.
rtc@google.com [Mon, 26 Oct 2009 22:36:21 +0000 (22:36 +0000)]
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

4 years agoInstall: read-only USB, resizable sys partitions
adlr@google.com [Mon, 26 Oct 2009 18:29:06 +0000 (18:29 +0000)]
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

5 years agoAU: Use Omaha ID, not MAC address
adlr@google.com [Thu, 22 Oct 2009 03:31:20 +0000 (03:31 +0000)]
AU: Use Omaha ID, not MAC address

Change memento updater to use randomly generated omaha id rather than
MAC address.

The Omaha team objected to our using MAC addresses in query parameters.

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

git-svn-id: svn://chrome-svn/chromeos/trunk@78 06c00378-0e64-4dae-be16-12b19f9950a1

5 years agoStill more platform modules.
rspangler@google.com [Sat, 10 Oct 2009 00:46:05 +0000 (00:46 +0000)]
Still more platform modules.

git-svn-id: svn://chrome-svn/chromeos/trunk@23 06c00378-0e64-4dae-be16-12b19f9950a1