The element root allow to specify the name of a directory which will be the root directory for the commands of the stage.
<stage>
<stageinfo>
<root>/mnt/lfs</root>
<base>/usr/src/gzip.1.2.4a</base>
</stageinfo>
<configure />
<make />
<make>
<param>install</param>
</make>
</stage>
|
The equivalent bash script is :
echo Creating file /mnt/lfs/_nalfs_tmp.1...
cat > /mnt/lfs/_nalfs_tmp.1 << 'EOF1'
echo Executing configure
cd /usr/src/gzip.1.2.4a
./configure
echo Executing make
cd /usr/src/gzip.1.2.4a
make
echo Executing make
cd /usr/src/gzip.1.2.4a
make install
true
EOF1
chmod 775 /mnt/lfs/_nalfs_tmp.1
echo Executing in directory /mnt/lfs
/usr/sbin/chroot /mnt/lfs /static/bin/env -i \
PATH='/bin:/usr/bin:/sbin:/usr/sbin:/static/bin' \
HOME='/root' /static/bin/bash -c ./_nalfs_tmp.1
echo Exiting stage
|