From aed6c72400a0c51b49c164368e5a2a2b4f612ef4 Mon Sep 17 00:00:00 2001 From: George Boudreau Date: Fri, 9 Jun 2006 21:07:29 +0000 Subject: [PATCH] a little more bulletproofing for the code --- LFS/master.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/LFS/master.sh b/LFS/master.sh index 880b07a..ed21937 100755 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -460,10 +460,20 @@ do_housekeeping: 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 \\