X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpre-install;h=5ff17d2e93e761b156c724317d2fed6f04fa5ba3;hb=deb5f975a44dc0778ae6f0beea0e46e0a34f2a36;hp=15c38a817ac28bc9fdac3a4e525cccda15b76750;hpb=564ec1bbb321286571c30da20b81620c33b18e6f;p=hvlinux.git diff --git a/stage0/pre-install b/stage0/pre-install index 15c38a8..5ff17d2 100755 --- a/stage0/pre-install +++ b/stage0/pre-install @@ -3,12 +3,6 @@ set -o errexit source ../functions/main -# Making sure that this script was executed by the root user -if [ "x${USER}" != "xroot" ]; then - echo "You must be the superuser to install hvlinux." - exit 1 -fi - # Making sure that the LFS directory is accessible if [ ! -d ${LFS} ]; then echo "LFS destination directory not found." @@ -27,7 +21,7 @@ if ! grep -q "lfs" /etc/passwd; then fi # Creating basic directories -for subdir in tmp var tools cross-tools; do +for subdir in etc tmp var tools cross-tools; do dir=${LFS}/${subdir} if [ ! -d ${dir} ]; then install -dv ${dir}