| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Pass in boolean 'selinux' via keyword arguments that tells
rmtree whether to do retry logic with selinux attributes
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The order of execution of umounts is the reverse of the order of
the mounts, so as to deal with a hierarchy of mounts correctly.
The ordering is reversed by _umountall but was being left in the
reversed state so that the next time _umountall was called, it
attempted to unmount filesystems in the wrong order, leading to
build failures due to being unable to unmount for example /proc
whilst /proc/filesystems was still mounted. This change reverses
the order of umount commands back again before _umountall exits
so as to maintain the ordering.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
| |
The new selinux plugin fakes SELinux being turned *off* in the chroot
by bind-mounting a fake /proc/filesystems in the chroot. If this
plugin is enabled, we should *not* do any SELinux attribute operations
in the chroot. Setup this state correctly at init time.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
| |
Mock originally takes just a directory for the argument to --sources;
expand this to allow for a single file or a directory.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
| |
Added a symlink in the chroot from /proc/self/fd to /dev/fd. Only
do this for EPEL5+ and FC hosts since the 2.6.9 kernel for EPEL4
does not support this.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Added the command line option:
--scrub=[all,chroot,cache,root-cache,c-cache,yum-cache]
which allows selective cleanup of the various cache's maintained
by mock (on on mock's behalf).
Also added logic to umountall() to umount in reverse order of mount.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Without this fix, only files within directories pre-created as part
of the chroot "skeleton" can be created using config_opts['files'],
as the attempt to create the file fails with "No such file or directory".
This patch allows for creation of files in arbitrary directories.
Signed-off-by: Clark Williams <williams@redhat.com>
(cherry picked from commit 0c4254573261bd1c9144b9fd03693572eb3ba036)
|
|
|
|
|
|
|
|
|
| |
Add a utility function selinuxEnabled() that returns true
if SELinux is enabled on the host and false otherwise. Use
this in _setupDev() method of the Root object to avoid shelling
out unnecessarily to 'chcon'.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
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.
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* '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.
|
| | |
|
| |
| |
| |
| | |
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.
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* '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
|
| | |
|
| |
| |
| |
| | |
level now.
|
| | |
|
| | |
|
| | |
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* '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.
|
| | |
|
| |
| |
| |
| | |
standardize on single-quotes for indexing hashes.
|
| | |
|
|/ |
|
| |
|