X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Finstall-1;h=a7bd5423b19184554e13d91d561924c852666149;hb=b7d1d99f41dcf50a8635f608679947f4455a0c7c;hp=d72dbaf5cf1ff093b9fb40990222ce7d04e357c8;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage1/install-1 b/stage1/install-1 index d72dbaf..a7bd542 100755 --- a/stage1/install-1 +++ b/stage1/install-1 @@ -1,48 +1,22 @@ -#!/bin/sh - -source ~/.bashrc +#!/bin/bash # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions +hvtrap_setup source ../packages-list -export LFS_PKG_DIR="$(dirname $(dirname $(pwd)))/packages/stage1" -export LFS_LOG_DIR=${LFS}/var/log/hvlinux-install/stage1 -export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log -export LFS_TMP="${LFS}/tmp" - init_log_file -export CFLAGS="-pipe -march=${MACHINE_ARCHITECTURE} -O2" -export CXXFLAGS=${CFLAGS} +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 +# directory of the user. +su - lfs -c "cd ${PWD}; ./install-2" -ipkg_mult ${BINUTILS} cis-binutils-pass1 "${BINUTILS}-pass1" -ipkg_mult ${GCC_CORE} cis-gcc-pass1 "${GCC_CORE}-pass1" -ipkg ${KERNEL} cis-linux-api-headers -ipkg ${GLIBC} cis-glibc -run_script_log "Toolchain-adjust-stage1" cis-toolchain-adjust -ipkg_mult ${GCC_CORE} cis-gcc-pass2 "${GCC_CORE}-pass2" -ipkg_mult ${BINUTILS} cis-binutils-pass2 "${BINUTILS}-pass2" -ipkg_ac ${NCURSES} "--with-shared --without-debug --without-ada --enable-overwrite" -ipkg ${BASH} cis-bash -ipkg ${BZIP2} cis-bzip2 -ipkg_ac ${COREUTILS} -ipkg_ac ${DIFFUTILS} -ipkg_ac ${FINDUTILS} -ipkg_ac ${GAWK} -ipkg ${GETTEXT} cis-gettext -ipkg_ac ${GREP} "--disable-perl-regexp" -ipkg_ac ${GZIP} -ipkg_ac ${MAKE_PACKAGE} -ipkg_ac ${PATCH_PACKAGE} -ipkg ${PERL} cis-perl -ipkg_ac ${SED} -ipkg_ac ${TAR_PACKAGE} -ipkg_ac ${TEXINFO} -ipkg ${UTIL_LINUX} cis-util-linux -run_script_log "Stripping" cis-stripping +rscr mult "Performing post-install" post-install echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h" -exit $? +exit 0