Mock fails when /var/cache/mock is bind-mounted.

Björn Persson bjorn at
Sun Feb 13 17:00:00 UTC 2011

Is there any particular reason why Mock can't work when /var/cache/mock is 

I have a relatively small flash drive for the root filesystem and a big disk 
mounted on /disk/data. To avoid filling the flash drive I bind-mounted 
/disk/data/mock on /var/cache/mock. When I run "fedpkg mockbuild", Mock fails 
because /var/cache/mock/fedora-rawhide-x86_64/yum_cache doesn't exist. 
Creating that directory manually doesn't help; it seems to disappear when I 
run "fedpkg mockbuild", and /var/cache/mock/fedora-rawhide-x86_64 too. "umount 
/var/cache/mock" allowed Mock to work.

I can imagine that the file permissions might be wrong, although they seem OK 
to me, but the error is that the directory doesn't exist. Why are the 
directories removed and not re-created?

Björn Persson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : 

More information about the devel mailing list