#!/bin/bash LFS_STAGE=stage2 # 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=/var/log/hvlinux-install/${LFS_STAGE} export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log export LFS_TMP=/tmp init_log_file # Scripts directory export SCRDIR=$(pwd) ipkg ${GDBM} ipkg ${INETUTILS} ipkg -m noac ${BZIP2} ipkg ${DIFFUTILS} ipkg ${FILE_PKG} ipkg ${GAWK} "--libexecdir=/usr/lib" ipkg ${FINDUTILS} ipkg ${GETTEXT} ipkg ${GREP} "--bindir=/bin --without-included-regex" ipkg ${GROFF} ipkg ${GZIP} ipkg ${KBD} ipkg ${LESS} ipkg ${MAKE_PACKAGE} ipkg ${MAN_DB} "\ --libexecdir=/usr/lib \ --disable-setuid \ --with-browser=/usr/bin/lynx \ --with-vgrind=/usr/bin/vgrind \ --with-grap=/usr/bin/grap" ipkg ${MODULE_INIT_TOOLS} ipkg ${PATCH_PACKAGE} ipkg ${PSMISC} ipkg -m noac ${SHADOW} ipkg ${SYSKLOGD} ipkg ${SYSVINIT} ipkg ${TAR_PACKAGE} "--bindir=/bin --libexecdir=/usr/sbin" ipkg ${TEXINFO} ipkg ${UDEV} ipkg -m noac ${UDEV_CONFIG} ipkg ${GRUB} rscr once "Installing HV-utilities" install-hv-utilities rscr mult "Compressing man pages" compressdoc rscr once "Installing bootscripts" install-bootscripts #rscr mult "Stripping" stripping echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h" # Creating root password passwd root || exit 1 rscr mult "Performing post-install" post-install ldconfig lasterror=$? if [ ${lasterror} -eq 0 ]; then echo "Stage2 successfully completed." echo "You must now compile a new kernel (go to /usr/src/linux)." echo "After that, you can reboot and try your new system." else echo "Error in script 'install-2'" exit ${lasterror} fi exec /bin/bash --login