changing mock directory
seth vidal
skvidal at phy.duke.edu
Fri Jul 29 16:56:39 UTC 2005
On Fri, 2005-07-29 at 10:51 -0600, Orion Poplawski wrote:
> I'm trying to move the mock chroot base from /var/lib/mock to
> /export/mock, without much success:
>
> mock -r fedora-5-i386-core.cfg
> /export/home/orion/fedora/extras/pytz/devel/pytz-2005i-2.fc5.src.rpm
> Errors cleaning out chroot: mock-helper: error:
> /export/mock/fedora-5-i386-core: not under allowed directory (/var/lib/mock)
> Starting Prep
> Preparing Root
> could not mount proc error was: mock-helper: error: proc: mount not
> allowed on /export/mock/fedora-5-i386-core/root/proc
> could not mount /dev/pts error was: mock-helper: error: devpts: mount
> not allowed on /export/mock/fedora-5-i386-core/root/dev/pts
> Traceback (most recent call last):
> File "/usr/bin/mock", line 672, in ?
> main()
> File "/usr/bin/mock", line 664, in main
> my.close()
> File "/usr/bin/mock", line 297, in close
> self._umount_by_file()
> File "/usr/bin/mock", line 382, in _umount_by_file
> self._umount(item)
> File "/usr/bin/mock", line 364, in _umount
> raise Error, "could not umount %s error was: %s" % (path, output)
> __main__.Error: could not umount proc error was: mock-helper: error:
> /export/mock/fedora-5-i386-core/root/proc: not under allowed directory
> (/var/lib/mock)
> make: *** [mockbuild] Error 1
>
> I just don't have room in /var. Is /var/lib/mock hardcoded somewhere?
yes. in the suid helper. It's a known 'bug' without a good resolution in
code. We're probably going to remove the option from the config file and
tell people it has to be in /var/lib/mock
you can just bind-mount /export/mock to /var/lib/mock and it will work
just fine.
-sv
More information about the Fedora-maintainers
mailing list