From 3c98e112d451a8bc4c73bc1f0d9859724dfc932d Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 21 Apr 2021 11:06:50 -0500 Subject: Move changing ownership of outside of the setupdisk section and into the create limited directory structure section. --- lfs.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lfs.sh b/lfs.sh index ca57b74..e395442 100755 --- a/lfs.sh +++ b/lfs.sh @@ -66,13 +66,16 @@ if ! grep -q "${LFS}" /proc/mounts; then printf "%b" " ${IGRN}Mounting ${IWHT}${LFS_DISK}${LFS_PART} ${IGRN}at \ ${IWHT}${LFS}${RST}\n" sudo mount "${LFS_DISK}${LFS_PART}" "${LFS}" - printf "%b" " ${IGRN}Changing ownership of ${IWHT}${LFS}${IGRN} \ -to user ${IWHT}${USER}${RST}\n" - sudo chown "${USER}" "${LFS}" fi # Create limited directory layout if [[ ! -f "${LFS}"/sources/limited ]]; then + printf "%b" " ${IGRN}Changing ownership of ${IWHT}${LFS}${IGRN} \ +to user ${IWHT}${USER}${RST}\n" + sudo chown -v "${USER}" "${LFS}" + + printf "%b" " ${IGRN}Creating limited directory structure at \ +${IWHT}${LFS}${IGRN}${RST}\n" mkdir -p "${LFS}"/sources mkdir -p "${LFS}"/tools mkdir -p "${LFS}"/bin -- cgit v1.2.3-54-g00ecf