[PATCH] do mounts when running mock --chroot
Here's a small patch to handle mounting things into the chroot when using the --chroot command, the same way we do when using --rebuild. --- mock.py.orig2008-01-16 13:42:21.0 -0500 +++ mock.py.mounts 2008-01-22 17:10:24.0 -0500 @@ -507,7 +507,12 @@ log.info(Running in chroot: %s % args) chroot.tryLockBuildRoot() chroot._resetLogging() -chroot.doChroot(args) + +try: +chroot._mountall() +chroot.doChroot(args) +finally: +chroot._umountall() elif options.mode == 'installdeps': if len(args) == 0: -- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
Re: [PATCH] do mounts when running mock --chroot
On Tue, Jan 22, 2008 at 05:14:25PM -0500, Mike Bonnet wrote: Here's a small patch to handle mounting things into the chroot when using the --chroot command, the same way we do when using --rebuild. Looks great to me. -- Michael -- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list