[25780] in Source-Commits
Re: /svn/athena r25225 - trunk/debathena/config/reactivate/debian
daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Tue Jul 12 07:53:50 2011
Date: Tue, 12 Jul 2011 07:53:43 -0400 (EDT)
From: Geoffrey Thomas <geofft@MIT.EDU>
To: Jonathan D Reed <jdreed@mit.edu>
cc: source-commits@mit.edu
In-Reply-To: <201107112125.p6BLP11W032256@drugstore.mit.edu>
Message-ID: <alpine.DEB.2.00.1107120753360.5330@tyger.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
ACK r25223, r25224, and r25225
--
Geoffrey Thomas
geofft@mit.edu
On Mon, 11 Jul 2011, Jonathan D Reed wrote:
> Author: jdreed
> Date: 2011-07-11 17:25:00 -0400 (Mon, 11 Jul 2011)
> New Revision: 25225
>
> Modified:
> trunk/debathena/config/reactivate/debian/reactivate
> trunk/debathena/config/reactivate/debian/snapshot-run
> Log:
> Move comments in snapshot-run, and also clean up in reactivate
>
> Modified: trunk/debathena/config/reactivate/debian/reactivate
> ===================================================================
> --- trunk/debathena/config/reactivate/debian/reactivate 2011-07-11 20:57:20 UTC (rev 25224)
> +++ trunk/debathena/config/reactivate/debian/reactivate 2011-07-11 21:25:00 UTC (rev 25225)
> @@ -31,6 +31,12 @@
> fi
> fi
>
> +# Cleanup our ticketenv hack
> +# Make sure nobody was evil
> +chattr -i /tmp/ticketenv
> +# If you made a directory and stored files there, too bad
> +rm -rf /tmp/ticketenv
> +
> # If either we or an updated package wanted to reboot, now is a
> # perfectly good time to do so -- auto-update is inhibited during a
> # login session.
>
> Modified: trunk/debathena/config/reactivate/debian/snapshot-run
> ===================================================================
> --- trunk/debathena/config/reactivate/debian/snapshot-run 2011-07-11 20:57:20 UTC (rev 25224)
> +++ trunk/debathena/config/reactivate/debian/snapshot-run 2011-07-11 21:25:00 UTC (rev 25225)
> @@ -48,18 +48,23 @@
> # /after/ being chrooted, which puts users back in the groups we
> # added them to
>
> +# Workaround for stupidity, see #928 for details
> +# Remove this once we're running pam-afs-session 2.4
> +# Run this inside the "set -e" block so it'll fail if necessary
> echo "KRB5CCNAME=$KRB5CCNAME" >| /tmp/ticketenv
>
> set +e
>
> cd
> -# Workaround for stupidity, see #928 for details
> -# Remove this once we're running pam-afs-session 2.4
> schroot -c "$session" -r -p -- sudo -E -u "$USER" -- "$@"
> cd /
>
> # Teardown
>
> +# Remove file from above.
> +# (This also gets nuked in reactivate, but be paranoid)
> +rm -f /tmp/ticketenv
> +
> for daemon in $daemons; do
> schr invoke-rc.d "$daemon" stop || [ $? = 100 ]
> done
>
>