[26377] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r25543 - trunk/debathena/scripts/installer/pxe/stage1/debathena

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Thu May 31 19:07:45 2012

Date: Thu, 31 May 2012 19:07:44 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201205312307.q4VN7ie4032126@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2012-05-31 19:07:44 -0400 (Thu, 31 May 2012)
New Revision: 25543

Modified:
   trunk/debathena/scripts/installer/pxe/stage1/debathena/installer.sh
Log:
Fail for IPs without hostnames

Modified: trunk/debathena/scripts/installer/pxe/stage1/debathena/installer.sh
===================================================================
--- trunk/debathena/scripts/installer/pxe/stage1/debathena/installer.sh	2012-05-31 13:25:25 UTC (rev 25542)
+++ trunk/debathena/scripts/installer/pxe/stage1/debathena/installer.sh	2012-05-31 23:07:44 UTC (rev 25543)
@@ -71,7 +71,20 @@
       echo "$IPADDR reverse-resolves to $HOSTNAME..."
     else
       echo "$dig"
-      echo "Could not look up hostname for $IPADDR.  Oh well..."
+      echo "Could not look up hostname for $IPADDR."
+      echo "Cannot continue without a valid hostname."
+      echo "Please note that if this address was newly requested,"
+      echo "or its hostname was changed, it can take up to 2 business days"
+      echo "before DNS information is correct."
+      echo 
+      echo "Please try again once DNS has been updated or use a different"
+      echo "IP address.  You may now restart or shut down this workstation."
+      while true; do
+	  read foo
+	  if [ "$foo" = "xyzzy" ]; then 
+	      break
+	  fi
+      done
     fi
   fi
   if [ -z "$HOSTNAME" ]; then


home help back first fref pref prev next nref lref last post