Olpc-update: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: Wiki page name set so that someone else will figure out an appropriate name. This method of updating from one OS build to another is experimental. It works by transferring only the diffe...)
 
(Notes on important files in the source repo.)
Line 31: Line 31:
Where is the source?
Where is the source?


A: source repo is /users/mstone/security on dev, therefore the git repository is http://dev.laptop.org/git?p=users/mstone/security;a=blob;f=rainbow/sbin/olpc-update;h=07fff4f9d51bd2bc36b90987dd0b623e1d7c1f3d;hb=37e1dce69d5c32cdeb11a726ab41d8aba661982c
A: the source repo is http://dev.laptop.org/git/users/mstone/security

The branch you want is currently called "updater", though this will likely change in the future.
There are five important files in the repository. They are:
rainbow/sbin/olpc-update
rainbow/sbin/olpc-update-rsync
rainbow/rainbow/update.py
rainbow/rainbow/launch/targets/update.py
rainbow/rainbow/launch/stages/update.py

Revision as of 02:36, 26 September 2007

Wiki page name set so that someone else will figure out an appropriate name.

This method of updating from one OS build to another is experimental. It works by transferring only the differences across the internet link to an updates server.

The current updates server is updates.laptop.org.

Usage:

  • be root at a command prompt,
  • type olpc-update NNN where NNN is the build number.

/usr/sbin/olpc-update

What update targets are available?

# rsync rsync://updates.laptop.org | sort

What is the latest version of the updater?

# wget http://dev.laptop.org/~mstone/olpccontents-latest.rpm
# wget http://dev.laptop.org/~mstone/rainbow-latest.rpm
# rpm --upgrade --force olpccontents-latest.rpm rainbow-latest.rpm

How can I re-use the bits for multiple laptops?

A: this feature is not yet available, but in the meanwhile you can make your own updates server based on the updates available. You will need to change the olpc-update script. For ideas:

# rsync FLAGS rsync://updates.laptop.org/build-NNN/manifest
# rsync FLAGS rsync://udpates.laptop.org/build-NNN/root/

Where is the source?

A: the source repo is http://dev.laptop.org/git/users/mstone/security

The branch you want is currently called "updater", though this will likely change in the future. There are five important files in the repository. They are:

rainbow/sbin/olpc-update
rainbow/sbin/olpc-update-rsync
rainbow/rainbow/update.py
rainbow/rainbow/launch/targets/update.py
rainbow/rainbow/launch/stages/update.py