Red Hat Bugzilla – Bug 193615
[RFE] it would be nice to be able to use local (file:///) URLs in mock's yum config
Last modified: 2007-11-30 17:11:34 EST
I have a local mirror of rawhide, which is available over NFS or on my local
main server, but not over ftp or http. Mock currently makes it impossible
AFAICT to use this local copy for builds. It would be possible to get it to use
them by introducing support for bind mounts in the mock build tree.
Also, it would be nice if chroot config files didn't have to be in /etc/mock,
such that I could set up mock config files and build roots as a regular user,
after adding my regular user to the group mock.
Is any such thing planner or even in the works?
mock for the buildsys and for my own personal box uses file:// repos just fine.
Have you actaully tested it?
works a treat.
Yes, I tried it in the mock config, and I just copied the entries from my
yum.conf, but mock wouldn't find the pathnames within the chroot, for reasons
that seemed obvious to me. I'll try again and see if I made any obvious
mistakes, if this is actually expected to work.
keep in mind that the file:/// are for paths OUTSIDE of the chroot.
but yes, it is not only expected it is KNOWN to work.
the fedora extras buildsys uses it this way.
You did create the repodata in your local file dir, right?