During bootstrap, when emerging baselayout (applies to all versions currently in portage), /etc/hosts is overwritten with a blank one with just 127.0.0.1 in it. This seems like a mistake to me as the ebuild's pkg_postinst() tries to not to create this file if it's already present in the '/' tree. However... at that time there's already a ${D}/etc/hosts in the sandbox tree that comes with rc-scripts-*.tar.bz2 (also all versions); and with CONFIG_PROTECT="-*" in place (i.e. during bootstrap) the existing one in '/' will be overwritten. Reproducible: Always Steps to Reproduce: 1. unpack stage-1 tarball 2. edit config files as needed and sync tree 3. add local server to /etc/hosts 4. set GENTOO_MIRRORS to that server's *name* 5. start bootstrapping Actual Results: When baselayout is done installing, the next ebuild will fail because the local mirror's name no longer resolves. Expected Results: [opposite of actual results]
Fixed for baselayout-1.8.5.10 and later.