[27002] in Source-Commits

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

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

daemon@ATHENA.MIT.EDU (Benjamin Kaduk)
Tue Apr 2 16:52:43 2013

Date: Tue, 2 Apr 2013 16:52:34 -0400 (EDT)
From: Benjamin Kaduk <kaduk@MIT.EDU>
To: Jonathan D Reed <jdreed@MIT.EDU>
cc: source-commits@MIT.EDU
In-Reply-To: <201304021901.r32J1a0K019347@drugstore.mit.edu>
Message-ID: <alpine.GSO.1.10.1304021652290.9389@multics.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

ACK.
-Ben

On Tue, 2 Apr 2013, Jonathan D Reed wrote:

> 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