Debian Codegraph @

examples/lvmpbuilder/STRATEGY

raw
1 1. We require that the user has defined (either
2 in the environment or in one of the pbuilderrc
3 files), two devices:
4 BASEDEV
5 This is the device where the persistent
6 ext2 filesystem containing the basic build
7 file system lies (what is usually kept
8 in base.tgz). This file system should be
9 e2fsck -f clean. create/update/clean go here.
10 COWDEV
11 This is the device to which the writes
12 will actually go during the build/login/execute.
13
14 2. For create/update/clean, we just mount BASEDEV in the appropriate
15 place and run pbuilder create/update/clean --no-tgz. We run an
16 e2fsck -f at the end.
17
18 3. For all other operations:
19 a. we create a new device TOTALDEV consisting of BASEDEV
20 extended by zeroes by the size of COWDEV.
21 d. we create a snapshot version WORKDEV of TOTALDEV with
22 the writes going to COWDEV.
23 e. we resize2fs the filesystem WORKDEV. This
24 step could be *slow*.
25 f. we mount WORKDEV in the appropriate place and run
26 pbuilder with the appropriate command.
27 g. on exit or error we must unmount WORKDEV and
28 remove WORKDEV and TOTALDEV.
29