| 1 |
The files under this directory were written by Kapil Hari Paranjape |
| 2 |
<[email protected]> and are based on pbuilder by Junichi Uekawa. |
| 3 |
|
| 4 |
They are placed under the GPL (see the header of each file for |
| 5 |
details). |
| 6 |
|
| 7 |
These files are scripts to help pbuilder run with the linux device mapper. |
| 8 |
|
| 9 |
I hope the files are reasonably well commented. If not please ask me. |
| 10 |
|
| 11 |
The order of things is roughly as follows. |
| 12 |
|
| 13 |
1. Create/assign two block devices for build work. The BASEDEV device |
| 14 |
should have enough space to hold the basic debian buildd root |
| 15 |
(an unpacked base.tgz from pbuilder). The COWDEV device should have |
| 16 |
enough space to actually perform the build. |
| 17 |
|
| 18 |
WARNING: All data on these two devices will be wiped out |
| 19 |
in the process of using lvmbuilder. You have been warned. |
| 20 |
|
| 21 |
1a.You could use a script like "sample_device_creator" to create |
| 22 |
two block devices. This creates "loop"back block devices out |
| 23 |
of files. |
| 24 |
|
| 25 |
WARNING: This is a sample script which I no longer use. |
| 26 |
Instead I have two real block devices reserved for build work. |
| 27 |
|
| 28 |
2. You should edit your ~/.pbuilderrc and add two lines |
| 29 |
BASEDEV=<fullpath of base block device> |
| 30 |
COWDEV=<fullpath of cow block device> |
| 31 |
you can also give these on the command line with |
| 32 |
--basedev <fullpath of base block device> |
| 33 |
and |
| 34 |
--cowdev <fullpath of cow block device> |
| 35 |
|
| 36 |
3. Edit the lvmbuilder script to give the location of the lib |
| 37 |
subdirectory. |
| 38 |
|
| 39 |
4. After this you can use lvmbuilder in place of pbuilder for |
| 40 |
the "create", "update", "build", "login" and "execute" operations. |
| 41 |
A number of command line options of pbuilder do not make |
| 42 |
sense in the lvm context --- these should generate error |
| 43 |
messages. See the file STRATEGY for details. |
| 44 |
|
| 45 |
|
| 46 |
Hope this helps! |
| 47 |
-- |
| 48 |
Kapil Hari Paranjape |
| 49 |
Wed, 15 Aug 2007 09:55:17 +0530 |
| 50 |
|