Upgrades to packages
[hvlinux.git] / stage1 / stage1-install
index d3eb6a7..9a700ca 100755 (executable)
@@ -5,7 +5,7 @@ source ../sysinfos
 source ../functions
 source ../packages-list
 
-export LFS_PKG_DIR="$(dirname $(dirname $(pwd)))/packages/stage1"
+export LFS_PKG_DIR="$(dirname $(pwd))/packages/stage1"
 export LFS_LOG_DIR=${LFS}/var/log/hvlinux-install/stage1
 export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
 export LFS_TMP="${LFS}/tmp"
@@ -28,7 +28,7 @@ for subdir in tmp var boot tools; do
     if [ ! -d ${dir} ]; then
         install -dv ${dir} || exit 1
     fi
-    chmod 777 ${dir} || exit 1
+    chown lfs:lfs ${dir} || exit 1
 done
 
 # Creating a link from the host root directory to LFS tools directory