X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpre-install;h=aa336844088ccb35f45113347a4c3e1ca7a11f40;hb=f920c7ef750f2163b9e407cc453b192ede2c185a;hp=5183a23de045bde50f84e8fe2fa30990e53cb122;hpb=3605ab38ca7604b1fe43c3bce5e4963730a85d39;p=hvlinux.git diff --git a/stage0/pre-install b/stage0/pre-install index 5183a23..aa33684 100755 --- a/stage0/pre-install +++ b/stage0/pre-install @@ -2,9 +2,9 @@ set -o errexit # Reading system configuration informations, functions and package versions. -source ../sysinfos +source ../config/sysinfos source ../functions -source ../packages-list +source ../config/packages-list # Making sure that this script was executed by the root user if [ "x${USER}" != "xroot" ]; then @@ -19,14 +19,13 @@ if [ ! -d ${LFS} ]; then fi # Testing for the presence of the lfs user -# We cannot always automatically create the user 'lfs' because the installation media -# can be a CD-ROM (read-only) -# If installing from some kind of live-CD, simply install as root without the LFS -# user :) +# We cannot always automatically create the user 'lfs' because the installation +# media can be a CD-ROM (read-only) If installing from some kind of live-CD, +# simply install as root without the LFS user :) if ! grep "lfs" /etc/passwd 1> /dev/null 2>&1; then + groupadd -f lfs # The option '-k /dev/null' prevents possible copying of files from a # skeleton directory (default is /etc/skel). - groupadd lfs useradd -s /bin/bash -g lfs -m -k /dev/null lfs fi