Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431254 - interactive installer: env details are not saved for a stage3 install (in case of failure)
Summary: interactive installer: env details are not saved for a stage3 install (in cas...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 16:08 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2017-11-15 17:55 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 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 16:08:46 UTC
JFYI, I've heard claims that "stage3 is resumable" but I guess not...

bash-3.1$ ./bootstrap-prefix.sh "/tmp/jolexa/test" stage3
* Bootstrapping Gentoo prefixed portage installation using
* host:   x86_64-pc-linux-gnu
* prefix: /tmp/jolexa/test
* ready to bootstrap stage3
!!! emerge not found, did you bootstrap stage1 and stage2?
bash-3.1$ ls usr/bin/
ebuild  egencache  emerge  emerge-webrsync  portageq  quickpkg  repoman
bash-3.1$
Comment 1 Fabian Groffen gentoo-dev 2012-08-13 16:11:27 UTC
if you come from the interactive installer, then yes, of course

you never set PATH

I'm thinking of something to create to pick up the settings from the installer
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 16:13:15 UTC
(In reply to comment #1)
> if you come from the interactive installer, then yes, of course

"of course" =P

> you never set PATH

shrugs, didn't know

> 
> I'm thinking of something to create to pick up the settings from the
> installer

I set MAKEOPTS in my env and the installer didn't respect it, so I assumed that I really needed to "do nothing" for the installer.
Comment 3 Fabian Groffen gentoo-dev 2012-08-13 16:16:39 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > if you come from the interactive installer, then yes, of course
> 
> "of course" =P
> 
> > you never set PATH
> 
> shrugs, didn't know

http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml
code listing 1.1 and 1.2

:)

> > I'm thinking of something to create to pick up the settings from the
> > installer
> 
> I set MAKEOPTS in my env and the installer didn't respect it, so I assumed
> that I really needed to "do nothing" for the installer.

That's a different issue.  What I mean is stageX to pick up/use env that the installer used as well, to be able to reliably continue.  I had the same issue yesterday.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-15 14:20:23 UTC
My idea is to save EPREFIX, CHOST, PATH, MAKEOPTS in a dot file that is checked/sourced.
Comment 5 Fabian Groffen gentoo-dev 2012-08-15 14:48:21 UTC
Same idea here, problem is the logic when/how.

What I do for the moment is just to start the installer with the same input (bits/prefix), then it resumes as well, in the same environment.

I'd love to keep the envs in ${EPREFIX}, but the installer only asks this last (for a good reason), so by that time the envs are no longer necessary.

Another idea that I had was to extend the error message with instructions on how to resume, which could be to run the "resume" target, ./bootstrap-prefix.sh ${EPREFIX} resume
Comment 6 Fabian Groffen gentoo-dev 2012-08-15 14:52:19 UTC
... on the "resume" idea ...

could even overload it such that you can do

./bootstrap-prefix.sh /var/prefix resume i686-pc-linux-gnu -j2 /usr/local/gnu:/usr/xsh4/bin

to not really resume (if there is nothing to resume), but start a new bootstrap with ingredients as given, taken as don't ask defaults by the interactive installer.
Comment 7 Fabian Groffen gentoo-dev 2012-08-15 14:53:21 UTC
I'd need something like that to perform weekly automagic bootstraps anyway, so there's only place where all bootstrap logic is encoded.
Comment 8 Fabian Groffen gentoo-dev 2017-11-15 17:55:02 UTC
The installer evolved since somewhat, resuming in general works, but it will never be fool-proof.