r2147 - jhalfs/trunk

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Tue Nov 1 04:45:19 PST 2005


Author: jhuntwork
Date: 2005-11-01 05:45:16 -0700 (Tue, 01 Nov 2005)
New Revision: 2147

Modified:
   jhalfs/trunk/jhalfs
Log:
Moved the root test to within the run_make function - no need to limit the creation of the Makefile or the extraction of the commands to root only

Modified: jhalfs/trunk/jhalfs
===================================================================
--- jhalfs/trunk/jhalfs	2005-11-01 12:33:46 UTC (rev 2146)
+++ jhalfs/trunk/jhalfs	2005-11-01 12:45:16 UTC (rev 2147)
@@ -824,6 +824,11 @@
 #----------------------------#
   # Test if make must be run.
   if [ "$RUNMAKE" = "1" ] ; then
+    # Test to make sure we're running the build as root
+    if [ "$UID" != "0" ] ; then
+      echo "You must be logged in as root to successfully build LFS."
+      exit 1
+    fi
     # Build the system
     if [ -e $MKFILE ] ; then
       echo -ne "Building the LFS system...\n"
@@ -839,13 +844,6 @@
 ###		MAIN		###
 ###################################
 
-# Test to make sure we're running the build as root
-
-if [ "$UID" != "0" ] ; then
-  echo "You must be logged in as root to successfully build LFS."
-  exit 1
-fi
-
 # Evaluate any command line switches
 
 while test $# -gt 0 ; do




More information about the alfs-log mailing list