#!/bin/bash # Reading system configuration informations, functions and package versions. source ../config/sysinfos source ../functions source ../config/packages-list # Making sure that this script was executed by the root user if [ "x${USER}" != "xroot" ]; then echo "You must be the superuser to install hvlinux." exit 1 fi # Making sure that the LFS directory is accessible if [ ! -d ${LFS} ]; then echo "LFS destination directory not found." exit 1 fi # Make lfs the owner in case the installation is restarted chown -Rv lfs:lfs ${LFS} exit $?