diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-21 11:06:50 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-21 11:23:11 -0500 |
commit | dafef9f2bada6b808453bf3ac567e2f3f10ff674 (patch) | |
tree | 6e5d737f702e53ca4386a1614c50cd5a21d1acd6 | |
parent | 59aaf2650009db2dbbbabe5edb7f9095c10e294f (diff) |
Move changing ownership of outside of the setupdisk section and into the create limited directory structure section.
-rwxr-xr-x | lfs.sh | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -67,13 +67,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 |