X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Finstall-1;h=1d6b6c818a544a8171c88a579cccb5fc3777e923;hb=7f1a3e5d69d0b1d64619604c30243e0070dc09ad;hp=749d949a7ecfeefe0ac8e6ea924565fd0e51a3e9;hpb=b5bfb2006502b57fab234345a2393fd04e6d55ad;p=hvlinux.git diff --git a/stage0/install-1 b/stage0/install-1 index 749d949..1d6b6c8 100755 --- a/stage0/install-1 +++ b/stage0/install-1 @@ -1,32 +1,14 @@ #!/bin/bash -LFS_STAGE=stage0 - -# Let shell functions inherit ERR trap. Same as `set -E'. -set -o errtrace - -# Setting ERR trap does implicit `set -o errexit'. -trap myerr ERR - -function myerr() -{ - echo - echo "*** An error occured during ${LFS_STAGE}" - exit 1 -} - # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions +hvtrap_setup 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" +init_log_file -echo "Performing pre-install" -./pre-install +rscr mult "Performing pre-install" pre-install # Logging-in as 'lfs' user, and executing the install-2 script. The # 'su -' command starts with a clean environment and enters the home