Manual in-place upgrade: Difference between revisions

From OLPC
Jump to navigation Jump to search
(remove Template:Obsolete, Updating does *not* replace this technical information!)
(second rsync maybe not necessary, use <trac> tag)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The new in-place upgrade system (see [[Early Boot]]) performs in-place upgrades via the [[olpc-update]] script. Sometimes you want to perform the steps manually to upgrade to some version currently living on another XO. Here's how:
The new in-place upgrade system (see [[Early boot]]) performs in-place upgrades via the [[olpc-update]] script. Sometimes an expert user might want to perform the steps manually to upgrade to some version currently living on another XO. Here's how:


# cp -rl /versions/running /versions/pristine/<new version>
# cp -rl /versions/running /versions/pristine/<new version>
Line 10: Line 10:
* You'll need to give the root user a password on <other host> in order to be able to ssh into it.
* You'll need to give the root user a password on <other host> in order to be able to ssh into it.
* Replace <new version> with the version named in the trailing part of the /versions/running symlink on <other host>. Usually it will be a long hash string.
* Replace <new version> with the version named in the trailing part of the /versions/running symlink on <other host>. Usually it will be a long hash string.
* The two rsync commands are identical. The second one is needed to work around [https://dev.laptop.org/ticket/3595 trac #3595]; eventually it will be unnecessary.
* The two rsync commands are identical. The second one is ''(was?)'' needed to work around <trac>3595</trac>; eventually it will be unnecessary.
* Reboot the XO when you're done to start using the new OS version. If something goes wrong, you can recover back to your original OS version by booting with the [[Cheat codes|'O' game key held down]].
* Reboot the XO when you're done to start using the new OS version. If something goes wrong, you can recover back to your original OS version by booting with the [[Cheat codes|'O' game key held down]].



Latest revision as of 00:06, 13 November 2008

The new in-place upgrade system (see Early boot) performs in-place upgrades via the olpc-update script. Sometimes an expert user might want to perform the steps manually to upgrade to some version currently living on another XO. Here's how:

# cp -rl /versions/running /versions/pristine/<new version>
# rsync -avcyOz --delete --numeric-ids root@<other host>:/versions/pristine/<new version> /versions/pristine/<new version>
# rsync -avcyOz --delete --numeric-ids root@<other host>:/versions/pristine/<new version> /versions/pristine/<new version>
# mv -f /versions/boot/current /versions/boot/alt
# ln -s /versions/pristine/<new version> /versions/boot/current

Notes:

  • You'll need to give the root user a password on <other host> in order to be able to ssh into it.
  • Replace <new version> with the version named in the trailing part of the /versions/running symlink on <other host>. Usually it will be a long hash string.
  • The two rsync commands are identical. The second one is (was?) needed to work around <trac>3595</trac>; eventually it will be unnecessary.
  • Reboot the XO when you're done to start using the new OS version. If something goes wrong, you can recover back to your original OS version by booting with the 'O' game key held down.