[27001] in Source-Commits

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

/svn/athena r25883 - trunk/debathena/scripts/installer

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Tue Apr 2 15:01:46 2013

Date: Tue, 2 Apr 2013 15:01:36 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201304021901.r32J1a0K019347@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2013-04-02 15:01:36 -0400 (Tue, 02 Apr 2013)
New Revision: 25883

Modified:
   trunk/debathena/scripts/installer/install-debathena.beta.sh
Log:
 * Cleanup pxe install flag
 * Run in noninteractive mode if installed from PXE, because
   late_command really should not be interactive at all


Modified: trunk/debathena/scripts/installer/install-debathena.beta.sh
===================================================================
--- trunk/debathena/scripts/installer/install-debathena.beta.sh	2013-04-01 21:09:14 UTC (rev 25882)
+++ trunk/debathena/scripts/installer/install-debathena.beta.sh	2013-04-02 19:01:36 UTC (rev 25883)
@@ -152,7 +152,10 @@
   read category
 done
 
-if [ cluster = "$category" ]; then
+# We need noninteractive for PXE installs because you're not supposed
+# to be interactive in a late_command, and nothing works (like
+# debconf, for example).  Until #702 is fixed.
+if [ cluster = "$category" ] || test -f /root/pxe-install-flag; then
   # We still want these set for cluster installs, which should be truly
   # noninteractive
   export DEBCONF_NONINTERACTIVE_SEEN=true
@@ -518,3 +521,7 @@
   echo "Setting hardware clock to UTC."
   hwclock --systohc --utc
 fi
+
+# Remove the pxe install flag
+rm -f /root/pxe-install-flag
+    
\ No newline at end of file


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