cowbuilder
a pbuilder wrapper for cowdancer.
- Provided by: cowbuilder (Version: 0.73)
- Source: cowdancer
- Report a bug
a pbuilder wrapper for cowdancer.
cowbuilder [commands] [options]
cowbuilder Executes the specified pbuilder operation with cowdancer
Most commands invoke pbuilder with the specified commands, see pbuilder manual for details.
Create the base.cow image. The directory for base.cow should be empty, or this command will fail.
Update the base.cow image.
Build a package given a .dsc file
Start a session within the base.cow.
Execute a command within the base.cow.
dump configuration information.
Most options are the same as pbuilder, except for the following which are handled specially
The place where COW operation takes place.
Do not use cowdancer on cowbuilder --update. Please use this option when cowdancer is interfering with upgrade process, or cowdancer itself is being upgraded within chroot.
Work around on Debian etch compatibility. cow-shell will search for all files in chroot, but will work.
cowbuilder reads the following configuration files per default.
The possible configuration options are as follows. Others are ignored.
See --no-cowdancer-update
See --debian-etch-workaround
# cowbuilder --create --hookdir /usr/share/doc/pbuilder/examples/workaround/ --distribution etch --debootstrap debootstrap --basepath /var/cache/pbuilder/base-test.cow
bash: /root/.pbuilderrc: No such file or directory
W: /home/dancer/.pbuilderrc does not exist
-> Running in no-targz mode
Distribution is etch.
Building the build environment
-> running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
.
.
Update the base.cow image.
# cowbuilder --update
bash: /root/.pbuilderrc: No such file or directory
-> Copying COW directory
-> Invoking pbuilder
W: /home/dancer/.pbuilderrc does not exist
-> Running in no-targz mode
-> copying local configuration
-> mounting /proc filesystem
-> mounting /dev/pts filesystem
-> policy-rc.d already exists
Refreshing the base.tgz
-> upgrading packages
.
.
Build the package specified in dsc file, with the base.cow image.
Run
cowbuilder --build
against the current directory.
The current directory should be an extracted Debian source package directory.
Edit
/etc/pbuilderrc
to have
PDEBUILD_PBUILDER=cowbuilder
to make this the default behavior for
pdebuild.
Start a cow-shell session inside base.cow, with
/home/dancer
being bind-mounted to within chroot.
Note that cowbuilder will not cow-protect what is inside
/home/
# cowbuilder --login --bindmount ${HOME}
bash: /root/.pbuilderrc: No such file or directory
-> Copying COW directory
-> Invoking pbuilder
W: /home/dancer/.pbuilderrc does not exist
-> Running in no-targz mode
-> copying local configuration
-> mounting /proc filesystem
-> mounting /dev/pts filesystem
-> Mounting /home/dancer
-> policy-rc.d already exists
-> entering the shell
#
Create a base.cow image with the path
/var/cache/pbuilder/base-test.cow
and distribution sid.
Junichi Uekawa (dancer@debian.org)
/usr/share/doc/pbuilder/pbuilder-doc.html, pbuilder (8), pdebuild (1)