Description of problem: No /etc/hosts file created. Version-Release number of selected component (if applicable): 0.7.2 How reproducible: Perform anything that needs to 'init' a build root. Steps to Reproduce: 1. mock -r<config> init Actual results: No /etc/hosts file created. Expected results: /etc/hosts file created, with atleast an entry for localhost. Additional info: This is a minor change, however certain build require localhost to resolve to 127.0.0.1. For example, MySQL test suites run a MySQL instance running on localhost. If 'localhost' does not resolve (meaning, there is no entry in /etc/hosts for it) then the test cases fail.
Created attachment 173761 [details] Patch to create /etc/hosts with a localhost entry.
I'd suggest copying system /etc/hosts file into mock chroot instead of generating new one.
the current version of mock creates a default hosts file with localhost entry. If you want to use a copy of the system hosts file, you can create a chroot then use the --copyin function to overwrite the default.