Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Using chroot during INSTALL phase

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Eric Sandall <eric AT sandall.us>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Using chroot during INSTALL phase
  • Date: Wed, 01 Jun 2005 14:05:08 -0700

Quoting "Sergey A. Lipnevich" <sergey AT optimaltec.com>:
Quoting Andrew <afrayedknot AT thefrayedknot.armory.com>:


In order to do what you want (build inside a chroot) you have to have an
entire functioning system, including all the dependencies of the spell
you're building, inside the chroot. You cant simply build something that
links against libraries without that stuff installed. You cant build
subversion if apr isnt installed. So the chroot for installing would
have to be pre-generated. Is this an idea worth considering? Definitly.
Will it eliminate INSTALL/TRACK_ROOT variables? I disagree, it just
changes (some of) the implementation. Will it make for less work for
spell maintainers? Depends. (more on this after some background on how
things work now)

Actually, this is not what I suggest. What if building is done in the regular
system (with root in TRACK_ROOT), and only doing install in the chroot (using
INSTALL_ROOT as root). Karsten made a good point, in order for "make install"
to succeed, we need at least make, bash, and install working in chroot.

Would that work for case 2? Would setting up a base chroot be worth
removing the already mostly completed TRACK_ROOT/INSTALL_ROOT setup?
You'd also have to be careful with those mount binds as you could be
masking someone's system libs (say if they wanted a chroot under /usr,
or even /opt and have some apps/libs there).

-sandalle

--
Eric Sandall | Source Mage GNU/Linux Developer
eric at sandall.us PGP: 0xA8EFDD61 | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @
WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





Archive powered by MHonArc 2.6.24.

Top of Page