Speeding Up Image-Creator by using a local mirror server

This information is for LPIA (Low Power Intel Architecture) based builds.

** In order to use this, you must have a local mirror of LPIA Ubuntu Gutsy.

debmirror is a useful command for mirroring a Debian type archive **

Setup a root strap mirror server

You can look at the file: /usr/share/pdk/default_config/defaults.cfg for more info on what can go in the: ~/.image-creator/image-creator.cfg file.

Setup sources.list* rewrite rules

Create a file called ~/.image-creator/sources_cfg containing:

 sources_regex = [
# For the Ubuntu Gutsy LPIA binaries
	(r'http://ports.ubuntu.com/ubuntu-ports gutsy', 'http://<path_to_a_local_mirror_of_ubuntu_gutsy_for_lpia>/ gutsy'),
# For the Ubuntu sources, since they are not at ports.ubuntu.com
	(r'http://archive.ubuntu.com/ubuntu gutsy', 'http://<path_to_a_local_mirror_of_ubuntu_gutsy>/'),
# For the Moblin.org files
	(r'http://www.moblin.org/apt gaston', 'http://<path_to_a_local_mirror_of_moblin.org>/ gaston'),
						       ] 

The purpose of this file is to rewrite the sources.list and sources.list.d/* files while they are being copied into the rootstrap. It will replace the search expression with the replacement expression.

Delete current rootstraps

You have to delete your current rootstraps for this to take affect by doing:

sudo image-creator --command clear-rootstraps

[Warning]

This will only affect new projects and new targets. If you do NOT delete your rootstraps after doing the above then it will NOT work.