[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: changing mock directory



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, it is. Use a bind mount instead.

e.g. in /etc/fstab

/export/mock /var/lib/mock auto bind 0 0

Paul.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]