| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
import fails (as it will on RHEL5)
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
| |
to use the 'newinstance' mount option if the kernel version
is >= 2.6.29
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
| |
BZ# 460574
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
| |
group for /dev/pts mounted in chroot (BZ# 510183)
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Copy /etc/hosts from host when resolver configuration is being
copied, otherwise add hostname as a loopback alias.
|
| |
|
| |
|
| |
|
|\ |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \ |
|
| |\| |
| | | |
| | | |
| | | | |
git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
|
| | |/
| | |
| | |
| | | |
friendly error message.
|
| | | |
|
| |/ |
|
|/ |
|
| |
|
|
|
|
| |
Signed-off-by: Mike McLean <mikem@redhat.com>
|
|
|
|
| |
cache
|
| |
|
|
|
|
| |
raise exception)
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
* 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
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* '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.
|
| | | |
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 'master' of /var/ftp/pub/Applications/git/mock:
split up --target and --arch cmdline options.
get rid of personality() calls in sub do() calls because it is set at top level now.
added --print-root-path option
paul howarth's request to change from -l to --login on bash invocations
use the right mkdev argument
Create the dev/full device, some packages use it during make check.
add ia64 and alpha to personality_defs
Patch from Doug Chapman <doug.chapman@hp.com>
Doug Chapman's ia64 personality warning fix
Roland McGrath's fix for ctypes LoadLibrary on ia64
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* 'master' of /var/ftp/pub/Applications/git/mock:
/usr/sbin/mock no longer needs to be owned by group mock.
remove unused debugging code.
version bump and changelog
fix privs for yum resolvdep, needs to be root to download addl filelists.
fixup release instructions so that tags properly pushed.
update changelog prior to release.
bump version. add comment about making sure to fix both version defs.
cleanup from unit tests if they are interrupted or end prematurely.
fix resultdir for --uniqueext builds without resultdir specified. try to standardize on single-quotes for indexing hashes.
we are now noarch, fix unit tests.
add tmpfs plugin to installation list.
requires usermode due to new userhelper stuff.
fix use of tabs in spec file to make rpmlint happy.
Run rpmbuild in a login shell in the chroot.
|
| | | | | |
|
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This patch allows you to set the current working directory (in the
chroot) before running a command with --chroot. This avoids the need to
pass shell snippets ('cd /some/path && /run/cmd') to mock when running a
command that expects to executed from a certain directory. It's useful
when using --copyin to setup the environment before running a command.
>From e4071d1d41a62ccf4461dfab958f9325edf30c97 Mon Sep 17 00:00:00 2001
From: Mike Bonnet <mikeb@redhat.com>
Date: Thu, 24 Jan 2008 17:09:06 -0500
Subject: [PATCH] optionally set the current working directory (in the chroot) before running command with --chroot
Signed-off-by: Michael E Brown <mebrown@michaels-house.net>
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
creation to fail. Add debug logging for running commands.
|
| | | |
| | | |
| | | |
| | | | |
fork/exec.\nThis cleans up the code considerably. Also, start reducing the places where we use a shell in the subcommand.
|
| | | | |
|
| | | | |
|
| | | | |
|
| |_|/
|/| |
| | |
| | | |
make sure we call postbuild hooks even on failure.
|