| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Fix problem introduced in commit 3bc5fb958deb809fc04d6a74ce6688e093f5831a
where the buildroot is no longer updated after unpacking the root cache.
http://bugzilla.redhat.com/557526
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Including the ccache directory /tmp/ccache and the yum cache directory
/var/cache/yum in the root cache is unnecessary and can lead to the
root cache tarball being an order of magnitude larger and taking 10
minutes or more to tar and compress even on a fast PC.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
| |
since the umount commands are reversed before being executed, just
append the umount of /proc/filesystems in the selinux plugin so
that it will happen in the correct order.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds an selinux plugin that sets up an environment with
selinux turned *off* in the build chroot. How does this work? From the
author's description:
It is done the same as the patch sent by Thomas Liu in bz 614440 does.
Actually, this proceeding was suggested by Dan Walsh in bz 573111.
1.) Fake /proc/filesystems is created in conf["cachedir"]. It includes the
same content as the same file in host environment, except line with selinuxfs.
This file is bind mounted into build environment.
2.) Option '--setopt=tsflags=nocontext' is added to yum commands. This is done
by wrapping mock.util.do with _selinuxDoYum in "preyum" hook. This function
just adds the option and passes the command to original mock.util.do function.
The wrapping is removed in "postyum" hook.
I didn't find cleaner method, without modifying main code.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
| |
Add a 'max_fs_size' parameter to the tmpfs plugin that allows
specification of sizes greater than default (50% of RAM).
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
| |
The original fix to generating a cache file without /proc, /sys, and /dev
entries failed due to the --exclude=sys filtering out /usr/include/sys (a
bad thing). Changed the filtering excludes to include a './' prefix to
avoid that little problem.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
| |
previous fix for rpmdb issues was under a "if online:" block. Move it
out so rpmdb cleanup occurs in both cases.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
| |
Added --excludes to tar comand line to exclude proc, sys and dev
files when creating root cache.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
| |
things can go wrong in a specific mock case if this happened. So just
nuke the installed dir and the files in it. Problem solved.
|
|
|
|
|
|
|
|
| |
Yum uses .sqlite files, but the plugin was looking for .sqllite. Remove
one 'l'.
Reported-by: Seth Vidal <skvidal@fedoraproject.org>
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
cache
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* '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.
|
| | |
|
| |
| |
| |
| | |
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.
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
--copyin and --copyout; updated plugins to use makeChrootPath(); updated releasetests.sh so that daemon tests uses --copyin
|
| |
|
| |
|
| |
|
|
|
|
| |
open it.
|
| |
|
|
having to install it.
|