summaryrefslogtreecommitdiffstats
path: root/py
Commit message (Collapse)AuthorAgeFilesLines
* Use -N flag with useradd, but not in EPEL #495734Jesse Keating2010-02-171-1/+1
| | | | | EL doesn't support -N, but uses -n instead. So use -N by default, but in the EL configs revert back to -n.
* add configuration option to run createrepo on result rpmsSeth Vidal2010-02-101-0/+7
| | | | | | | | Added patch from Seth Vidal <skvidal@fedoraproject.org> to automatically run createrepo on the generated rpms Signed-off-by: Seth Vidal <skvidal@fedoraproject.org> Signed-off-by: Clark Williams <williams@redhat.com>
* add --unpriv logic to --shellClark Williams2010-01-181-1/+5
| | | | | | | Add logic to run with unprivleged uid:gid in interactive chroot shell. (BZ# 522505) Signed-off-by: Clark Williams <williams@redhat.com>
* handle distro differences for /dev/pts in chrootmock-1.0.2Clark Williams2009-12-231-4/+13
| | | | | | | | EPEL distros are older and have different behavior of the /dev/pts filesystem than newer kernels in Fedora. Deal with that when setting up devices. Signed-off-by: Clark Williams <williams@redhat.com>
* add IPv6 localhost entry to /etc/hosts and fix build issueClark Williams2009-12-231-2/+4
| | | | | | | | Add a default IPv6 entry for BZ545435, to fix failure in curl test suite. In addition, remove the result of gethostname(), since this causes koji to insert 'localhost' into rpms Signed-off-by: Clark Williams <williams@redhat.com>
* fix intermittent problems generating root cache tarball (BZ# 540997)Clark Williams2009-11-251-5/+12
| | | | | | | | | Patch submitted by Paul Howarth <paul@city-fan.org> to prevent race condition when creating root cache tarballs and to remove partial tarballs on error. Signed-off-by: Clark Williams <williams@redhat.com> CC: Paul Howarth <paul@city-fan.org>
* reworked devpts handling {BZ 510183}Clark Williams2009-11-232-2/+5
| | | | | | | | | | changed setup of devpts inside chroot so that /dev/ptmx is a symlink to /dev/pty/ptmx and that it's mounted with all read/write permissions so that pty's are usable inside the chroot. Also called devSetup when running interactive shell, so that shell chroot matches build chroot environment. Signed-off-by: Clark Williams <williams@redhat.com>
* conditionalize import of uuid package and avoid dependent code ifClark Williams2009-11-091-9/+15
| | | | import fails (as it will on RHEL5)
* Don't automatically update the chroot in a --no-clean scenarioJesse Keating2009-08-111-3/+2
| | | | | | This causes largely unnecessary yum runs and delays builds. The new behavior would just skip the yum call all together, unless the chroot was cleaned, in which case the setup command is called.
* fixed stupid typo in last updateClark Williams2009-07-081-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* reworked /dev/pts mount command to lookup 'tty' group id andClark Williams2009-07-081-1/+6
| | | | | | | to use the 'newinstance' mount option if the kernel version is >= 2.6.29 Signed-off-by: Clark Williams <williams@redhat.com>
* Add directory and infrastructure that will allow dbus to start in chroot.Clark Williams2009-07-081-0/+11
| | | | | | BZ# 460574 Signed-off-by: Clark Williams <williams@redhat.com>
* added code to raise exception when --shell specified for uninitializedClark Williams2009-07-081-0/+2
| | | | | | chroot. BZ# 506288 Signed-off-by: Clark Williams <williams@redhat.com>
* Patch from Jakub Jelinek (jakub@redhat.com) to fix incorrect mode andClark Williams2009-07-081-1/+1
| | | | | | group for /dev/pts mounted in chroot (BZ# 510183) Signed-off-by: Clark Williams <williams@redhat.com>
* Support configurable root cache compressionLubomir Rintel2009-03-272-4/+12
| | | | | | | | | | | | | This patch adds configuration options that influence how is the root cache compressed: config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "gzip" config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz" Motivation to do this was to be able to use lzma compression. While it takes a long time to compress, for me it was more than two times faster than gzip when decompressing. Since I only seldom regenerate the root cache while doing a lot of builds, I was able to gain a considerable speed up.
* Be able to resolve hostnameLubomir Rintel2009-03-272-7/+17
| | | | | Copy /etc/hosts from host when resolver configuration is being copied, otherwise add hostname as a loopback alias.
* Copy the hosts tzdata (/etc/localtime) into the chrootJesse Keating2009-02-051-0/+7
|
* commented out dropPrivsForever() in copyin logicClark Williams2009-02-021-1/+1
|
* buildsrpm: some additional sanity checking, and removing an unnecessary globMike Bonnet2009-02-011-6/+6
|
* HOME environment variable is now set globally to match chroot homedirMike Bonnet2009-02-011-1/+0
|
* Merge branch 'master' into clarkClark Williams2009-02-012-0/+102
|\
| * Merge branch 'buildsrpm'Michael E Brown2009-01-232-0/+102
| |\ | | | | | | | | | | | | | | | | | | | | | * buildsrpm: unlink->rmdir another srpm -> spec change in buildsrpm. add state for building srpm. cant use srpm var, use spec file instead. its ofr info only. initial work to copy spec/sources and build srpm.
| | * unlink->rmdirMichael E Brown2009-01-081-1/+1
| | |
| | * another srpm -> spec change in buildsrpm. add state for building srpm.Michael E Brown2009-01-082-1/+2
| | |
| | * cant use srpm var, use spec file instead. its ofr info only.Michael E Brown2009-01-081-5/+5
| | |
| | * initial work to copy spec/sources and build srpm.Michael E Brown2009-01-082-0/+101
| | |
* | | set HOME environment variable to be the chroot homeClark Williams2009-02-012-3/+1
| | |
* | | Merge branch 'master' into clarkClark Williams2009-02-014-5/+27
|\ \ \
| * | | Merge branch 'master' of ↵Clark Williams2009-01-083-2/+22
| |\| | | | | | | | | | | | | | git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
| | * | add new exception for result dir not being accessible and print nice ↵Michael E Brown2008-11-183-2/+22
| | |/ | | | | | | | | | friendly error message.
| * | removed import of popen2 from py/mock/util.py (gets rid of deprecated warning)Clark Williams2008-12-191-1/+0
| | |
| * | added version variable; added Mock Version banner to all logsClark Williams2008-12-191-0/+2
| | |
| * | added version key to config options; moved cache_topdir to /var/cache/mock; ↵Clark Williams2008-12-191-2/+3
| |/ | | | | | | removed trailing slash from basedir
* / Signed-off-by: Mike McLean <mikem redhat com>Mike McLean2008-11-111-2/+10
|/
* added panu's fix for strange rpm behaviorClark Williams2008-10-151-2/+4
|
* internal setarch support for s390/s390xMike McLean2008-10-141-0/+1
| | | | Signed-off-by: Mike McLean <mikem@redhat.com>
* workaround new rpm issues by deleting rpmdb temp files after unpacking root ↵Clark Williams2008-08-291-7/+13
| | | | cache
* create BUILDROOT dir required by new rpmbuildClark Williams2008-08-291-1/+1
|
* Merge branch 'master' of ↵Clark Williams2008-04-143-8/+24
|\ | | | | | | git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
| * fix typo which causes exception in command-timeout code (which was trying to ↵Michael E Brown2008-03-311-1/+1
| | | | | | | | raise exception)
| * add support for shmMichael E Brown2008-03-091-7/+12
| |
| * handle idiots with grace and poise.Michael E Brown2008-03-071-0/+11
| |
* | changed default chroot_setup_cmd to be "groupinstall"Clark Williams2008-03-071-1/+1
|/
* log child return code for debugging.Michael E Brown2008-03-041-0/+1
|
* modify rootcache logic to rebuild cache if config files have newer timestampClark Williams2008-02-293-1/+15
|
* add fcntl importMichael E Brown2008-01-301-0/+1
|
* Merge ssh://mock/var/ftp/pub/Applications/git/mockMichael E Brown2008-01-293-29/+34
|\ | | | | | | | | | | | | * ssh://mock/var/ftp/pub/Applications/git/mock: updates to mock.util.do(): 1) nonblocking read, 2) dont leave zombies (waitpid). we now run /etc/profile, so no need to manually do ccache stuff. use makeChrootPath() functionality rather than obscure string interpolation
| * updates to mock.util.do(): 1) nonblocking read, 2) dont leave zombies (waitpid).Michael E Brown2008-01-291-12/+32
| |
| * Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2008-01-229-183/+206
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of /var/ftp/pub/Applications/git/mock: get rid of one level of shell indirection where possible. revert accidental comment-out of test cleanup that I was using to debug tar problem. add back in dropped '.' to tar cvf command that is causing root cache creation to fail. Add debug logging for running commands. convert mock.util.do() to use subprocess.Popen() rather than raw fork/exec.\nThis cleans up the code considerably. Also, start reducing the places where we use a shell in the subcommand. better unit test error message. mount everything when running chroot command. updated change log added compat symlinks version bump update manpage with new site-defaults ref. the great config file rename. some manpage clarifications and arrangements. clarify info message to make it obvious that root cache is being unpacked. cleanup trailing whitespace. cleanup trailing whitespace. add ability to conditionally enable tmpfs based on minimum ram availability. add initfailed hook so tmpfs plugin can properly unmount tmpfs on failure. make sure we call postbuild hooks even on failure.
| * | we now run /etc/profile, so no need to manually do ccache stuff.Michael E Brown2008-01-221-16/+1
| | |