Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55464 - make.conf rename in bootstrap.sh can be damaging
Summary: make.conf rename in bootstrap.sh can be damaging
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-28 12:43 UTC by Rick Jenkins
Modified: 2005-03-25 11:24 UTC (History)
0 users

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 Rick Jenkins 2004-06-28 12:43:27 UTC
During execution of the /usr/portage/scripts/bootstrap.sh script, it seems necessary to modify the options in make.conf. At present this is done by renaming the user's make.conf to make.conf.build, then creating a new make.conf with the required options. At the end of the script make.conf.build is moved back to make.conf.

If all goes well, this works very smoothly. Unfortunately, the sript may fail for any of a large number of reasons, and then the final rename may be skipped. If the hapless user forgets to check, fixes the immediate problem, and retarts the script the carefully-crafted user make.conf is lost in a second rename cycle. I've had this happen several times, and while it is not a disaster it can waste a lot of time.

The sad fact is that trapping the need for a reverse rename on script failure is no simple task.

If emerge could take a switch to accept configuration info from a different file, for example

emerge --config /etc/make.conf.boot ...

The rather clumsy rename could be avoided, and cleanup would never be an issue. This would enable a much more friendly bootstrap process. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-28 13:14:45 UTC
Hrrrmn... I think bootstrap.sh is actually covered by base-system.  The livecd herd only covers the actual LiveCD.  It seems your issue is with the bootstrap.sh, or possibly even portage itself.

I'm going to reassign to bug-wranglers and let them figure out where this should go.
Comment 2 SpanKY gentoo-dev 2004-11-30 19:15:51 UTC
bootstrap.sh now cleans up after itself by moving the make.conf.build back to make.conf upon error/termination/etc...
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-03-25 11:24:29 UTC
Moving these so we can remove the "Install CD" component from "Gentoo Linux".

I apologize to everyone for this spam, but according to the bugzilla developers,
this is the only reasonable way to do this.