OOB: add --cacheonly support for completely offline runs
Martin Langhoff
martin.langhoff at gmail.com
Tue Jul 24 16:11:59 EDT 2012
Fetch, test, review at
http://dev.laptop.org/git/projects/olpc-os-builder/log/?h=pu-offline
Essentially, after a completed run, you can re-run OOB with
--cacheonly and it'll never connect to the network. All modules are
supported (modulo bugs).
The base module uses cacheonly support in imgcreate (part of
livecd-tools) if present. Falls back to using the network if support
is not available -- if you are truly offline it'll error out.
Brian Lane seems happy with my patches adding cacheonly support to
imgcreate which were actually pretty simple, as the yum API supports
it cleanly. We may see them land in an F17 update.
Martin Langhoff (8):
Introduce --cacheonly boolean option, propagate to modules
ooblib: introduce cachedurlopen(), use it in get_repomd()
use cachedurlopen() in repos and yumcfg modules
base: add cacheonly support, active when imgcreate supports it
sugar_activities_extra: add cacheonly support
sugarlabs_activities: add cacheonly support
sugar_activity_group: add support for cacheonly
sugar_activity_group: break down an unwieldy loop
The diffstat overstates the case, as nesting levels have shifted in
python scripts...
lib/ooblib.py |
43 ++++++++++++++++++++++++--
lib/shlib.sh | 8 +++++
modules/base/build.40.imagecreate.py |
23 +++++++++++---
modules/repos/ksmain.50.repos.py | 3 +-
modules/sugar_activities_extra/kspost.60.nochroot.activities.sh | 5 +--
modules/sugar_activity_group/kspost.60.nochroot.activities.py |
128 +++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/sugarlabs_activities/kspost.60.nochroot.aslo.sh |
23 +++++++++++---
modules/yumcfg/kspost.50.yumcfg.py | 3 +-
osbuilder.py |
17 +++++++++--
9 files changed, 184 insertions(+), 69 deletions(-)
cheers,
m
--
martin.langhoff at gmail.com
martin at laptop.org -- Software Architect - OLPC
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
More information about the Devel
mailing list