X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpre-install;h=15c38a817ac28bc9fdac3a4e525cccda15b76750;hb=bd4976a460cc6af4da09164c6f1d1581480a9771;hp=aa336844088ccb35f45113347a4c3e1ca7a11f40;hpb=2ad910e22979500192ea43d5599ad003440744a4;p=hvlinux.git diff --git a/stage0/pre-install b/stage0/pre-install index aa33684..15c38a8 100755 --- a/stage0/pre-install +++ b/stage0/pre-install @@ -1,10 +1,7 @@ #!/bin/bash set -o errexit -# Reading system configuration informations, functions and package versions. -source ../config/sysinfos -source ../functions -source ../config/packages-list +source ../functions/main # Making sure that this script was executed by the root user if [ "x${USER}" != "xroot" ]; then @@ -22,7 +19,7 @@ fi # 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 +if ! grep -q "lfs" /etc/passwd; then groupadd -f lfs # The option '-k /dev/null' prevents possible copying of files from a # skeleton directory (default is /etc/skel).