#!/bin/sh set -o errexit LFS_STAGE=stage0 # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list export LFS_PKG_DIR="$(dirname $(pwd))/packages/${LFS_STAGE}" export LFS_LOG_DIR=${LFS}/var/log/hvlinux-install/${LFS_STAGE} export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log export LFS_TMP="${LFS}/tmp" echo "Performing pre-install" ./cis-pre-install # Logging-in as 'lfs' user, and executing the install-1 script. The # 'su -' command starts with a clean environment and enters the home # directory of the user. su - lfs -c "cd ${PWD}; ./install-1" if [ $? -ne 0 ]; then echo "*** An error occured during ${LFS_STAGE}" exit 1 fi echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h" exit 0