[24313] in Source-Commits

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

/svn/athena r23911 - trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty

daemon@ATHENA.MIT.EDU (andrew m. boardman)
Thu Jul 9 15:31:51 2009

Date: Thu, 9 Jul 2009 15:31:39 -0400
From: "andrew m. boardman" <amb@MIT.EDU>
Message-Id: <200907091931.n69JVdMS021561@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: amb
Date: 2009-07-09 15:31:39 -0400 (Thu, 09 Jul 2009)
New Revision: 23911

Modified:
   trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty/installer.sh
   trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty/preseed.autoinstall
Log:
Add an undocumented option to choose an ubuntu mirror for cluster installs.
(Mostly for testing weird heisenbugs on some Dell hardware.)


Modified: trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty/installer.sh
===================================================================
--- trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty/installer.sh	2009-07-09 19:29:44 UTC (rev 23910)
+++ trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty/installer.sh	2009-07-09 19:31:39 UTC (rev 23911)
@@ -102,6 +102,12 @@
   case "$r" in
     1)
       echo "Debathena CLUSTER it is."; pxetype=cluster ;;
+    1a)
+      # Yes, this is undocumented.
+      echo "Debathena CLUSTER it is."; pxetype=cluster
+      echo -n "...but choose a preferred mirror hostname, too: "
+      read mirrorsite
+      echo "Using mirror site $mirrorsite";;
     2)
       echo "Normal Debathena install it is."; pxetype=choose ;;
     3)
@@ -168,6 +174,13 @@
 d-i netcfg/confirm_static boolean true
 EOF
 
+if [ -z "$mirrorsite" ] ; then mirrorsite=ubuntu.media.mit.edu ; fi
+
+# Perferred hostname of mirror site
+cat >> preseed <<EOF
+d-i apt-setup/hostname string $mirrorsite
+EOF
+
 # This is used by the final installer step.
 # A hardcoded number is used as DNS may still be iffy.
 echo "Fetching Debathena postinstaller."

Modified: trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty/preseed.autoinstall
===================================================================
--- trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty/preseed.autoinstall	2009-07-09 19:29:44 UTC (rev 23910)
+++ trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty/preseed.autoinstall	2009-07-09 19:31:39 UTC (rev 23911)
@@ -108,7 +108,8 @@
 #d-i apt-setup/security_host string security.ubuntu.com
 #d-i apt-setup/security_path string /ubuntu
 d-i apt-setup/country string US
-d-i apt-setup/hostname string ubuntu.media.mit.edu
+# Actual mirror host now taken care of (semi-secretly) by the installer script.
+# d-i apt-setup/hostname string ubuntu.media.mit.edu
 d-i apt-setup/directory string /ubuntu
 d-i apt-setup/country US
 


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