#!/bin/bash source env.sh source spinner.sh source colors.sh #source versioncheck.sh [[ -d /mnt/lfs ]] || sudo mkdir ${LFS} if ! grep -q "${LFS}" /proc/mounts; then source setupdisk.sh "${LFS_DISK}" "${LFS_ROOT}" sudo mount "${LFS_DISK}${LFS_ROOT}" "${LFS}" sudo chown -v ${USER} "${LFS}" fi mkdir -pv ${LFS_SRC} mkdir -pv ${LFS}/tools mkdir -pv ${LFS}/bin mkdir -pv ${LFS}/etc mkdir -pv ${LFS}/lib mkdir -pv ${LFS}/sbin mkdir -pv ${LFS}/usr mkdir -pv ${LFS}/var case $(uname -m) in x86_64) mkdir -pv ${LFS}/lib64 ;; esac #sudo groupadd lfs #sudo useradd -s /bin/bash -g lfs -m -k /dev/null lfs #echo -e "${LFS_PWD}\n${LFS_PWD}\n" | sudo passwd lfs cp -rf *.sh chapter* *.csv "${LFS}/sources" cd "${LFS}/sources" source download.sh retval=$? if [ "$retval" -ne 0 ]; then exit 1 fi for package in binutils gcc linux-api-headers glibc libstdc++; do source packageinstall.sh 5 $package retval=$? if [ "$retval" -ne 0 ]; then exit 1 fi done for package in m4 ncurses bash coreutils diffutils file findutils gawk grep gzip make patch sed tar xz binutils gcc; do source packageinstall.sh 6 $package retval=$? if [ "$retval" -ne 0 ]; then exit 1 fi done