aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-21 11:06:50 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-21 11:08:00 -0500
commit2f1e7b9cc80b2a1926bf9e39edb5ffddd9785549 (patch)
treebcbcb0737ec1ae809a8f8a07deb122f3303b2d8f
parent057e88552151997d0ffb6f0fd306f5c9830a596e (diff)
Move changing ownership of outside of the setupdisk section and into the create limited directory structure section.
-rwxr-xr-xlfs.sh9
1 files 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