<!ELEMENT stageinfo (root?, user?, environment?, base?)>
This element occurs in : Element: <stage>
See also : Element: <root> | Element : <base> | Element: <environment> | Element: <user>
The element stageinfo allows you to specify several contexts of information used to process the commands of the stage to which the stageinfo belongs.
The base sub-element specifies a base directory that will be used by all the commands of the stage, unless the command redefines the base locally. See Element : <base>.
The user sub-element specifies a user name that will be used as the effective user ID of the current process for all the commands of the stage. See Element: <user>.
The root sub-element specifies a directory name in which the commands of the stage will be performed (using a chroot command). See Element: <root>.
The environment sub-element allow you to specify an environment variable that will be added to the current environment when processing the commands of the stage. See Element: <environment>.
<stage name="Install gzip">
<stageinfo>
<root>/mnt/lfs</root>
<user>lfs</user>
<environment>PATH=/bin:/sbin</environment>
<base>/usr/src/gzip.1.2.4a</base>
</stageinfo>
<configure>
</configure>
<make>
</make>
<make>
<param>install</param>
</make>
</stage>
The equivalent bash script is :
echo Executing configure su - lfs export PATH=/bin:/sbin cd /usr/src/gzip.1.2.4a ./configure echo Executing make su - lfs export PATH=/bin:/sbin cd /usr/src/gzip.1.2.4a make echo Executing make su - lfs export PATH=/bin:/sbin cd /usr/src/gzip.1.2.4a make install echo Exiting stage