r2761 - jhalfs/trunk/LFS

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Fri Jun 9 14:07:29 PDT 2006


Author: georgeb
Date: 2006-06-09 15:07:29 -0600 (Fri, 09 Jun 2006)
New Revision: 2761

Modified:
   jhalfs/trunk/LFS/master.sh
Log:
a little more bulletproofing for the <make restart> code 

Modified: jhalfs/trunk/LFS/master.sh
===================================================================
--- jhalfs/trunk/LFS/master.sh	2006-06-09 20:52:05 UTC (rev 2760)
+++ jhalfs/trunk/LFS/master.sh	2006-06-09 21:07:29 UTC (rev 2761)
@@ -460,10 +460,20 @@
 	fi;
 
 restart_code:
-	@echo "This feature is experimental, BUGS may exist"
+	@echo ">>> This feature is experimental, BUGS may exist"
+
+	@if [ ! -L /tools ]; then \\
+	  echo -e "\\nERROR::\\n /tools is NOT a symlink.. /tools must point to \$(MOUNT_PT)/tools\\n" && false;\\
+	fi;
+
+	@if [ ! -e /tools ]; then \\
+	  echo -e "\\nERROR::\\nThe target /tools points to does not exist.\\nVerify the target.. \$(MOUNT_PT)/tools\\n" && false;\\
+	fi;
+
 	@if ! stat -c %N /tools | grep "\$(MOUNT_PT)/tools" >/dev/null ; then \\
 	  echo -e "\\nERROR::\\nThe symlink \\"/tools\\" does not point to \\"\$(MOUNT_PT)/tools\\".\\nCorrect the problem and rerun\\n" && false;\\
 	fi;
+
 	@if [ -f ???-kernfs ]; then \\
 	  mkdir -pv \$(MOUNT_PT)/{dev,proc,sys};\\
 	  if [ ! -e \$(MOUNT_PT)/dev/console ]; then \\




More information about the alfs-log mailing list