Differences between revisions 3 and 6 (spanning 3 versions)
Revision 3 as of 2007-09-15 21:57:02
Size: 721
Editor: OndrejCertik
Comment:
Revision 6 as of 2007-09-16 00:35:31
Size: 886
Editor: OndrejCertik
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
Create the base repository: Create the base image:
Line 13: Line 13:
And a new and shiny build image is created in `/var/cache/pbuilder/base.cow/`
Line 16: Line 17:
Update the repository Update the base image
Line 35: Line 36:
Of course the location `/tmp/new` is something else. Try those commands and see how fast they are on your computer. You can compare them to our [:cowbuilder_benchmark: benchmarks]. Of course `cowbuilder` uses a different location than `/tmp/new`. You need to optimize those 2 commands on your computer. So try them by hand and possibly try a different filesystem and be sure it's not very full. For details, see our [:cowbuilder_benchmark: benchmarks].

cowbuilder

This is the tutorial for cowbuilder. See also [:qemubuilder: qemubuilder].

Usage

Initialization

Create the base image:

sudo cowbuilder --create

And a new and shiny build image is created in /var/cache/pbuilder/base.cow/

Every day usage

Update the base image

sudo cowbuilder --update

Build a package:

sudo cowbuilder --build somepackage.dsc

troubleshooting

Slow copying and removing of the COW directory

What cowbuilder does is:

cp -al /var/cache/pbuilder/base.cow /tmp/new
rm -rf /tmp/new

Of course cowbuilder uses a different location than /tmp/new. You need to optimize those 2 commands on your computer. So try them by hand and possibly try a different filesystem and be sure it's not very full. For details, see our [:cowbuilder_benchmark: benchmarks].