Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21645 - [baselayout-1.8.[5-6].*] -- bootstrap overwrites /etc/hosts
Summary: [baselayout-1.8.[5-6].*] -- bootstrap overwrites /etc/hosts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-24 19:16 UTC by bartron
Modified: 2003-10-26 14:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bartron 2003-05-24 19:16:18 UTC
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]
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-26 14:05:06 UTC
Fixed for baselayout-1.8.5.10 and later.