[26911] in Source-Commits
Re: /svn/athena r25827 - trunk/debathena/config/auto-update/debian
daemon@ATHENA.MIT.EDU (Benjamin Kaduk)
Mon Feb 25 12:08:40 2013
Date: Mon, 25 Feb 2013 12:08:30 -0500 (EST)
From: Benjamin Kaduk <kaduk@MIT.EDU>
To: Jonathan D Reed <jdreed@MIT.EDU>
cc: source-commits@MIT.EDU
In-Reply-To: <201302251614.r1PGED6N003748@drugstore.mit.edu>
Message-ID: <alpine.GSO.1.10.1302251208260.9389@multics.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Thanks, ACK.
-Ben
On Mon, 25 Feb 2013, Jonathan D Reed wrote:
> Author: jdreed
> Date: 2013-02-25 11:14:13 -0500 (Mon, 25 Feb 2013)
> New Revision: 25827
>
> Modified:
> trunk/debathena/config/auto-update/debian/athena-auto-update
> trunk/debathena/config/auto-update/debian/changelog
> Log:
> In auto-update:
> * Also cleanup the headers for any kernels we remove. (Trac: #1012)
>
>
> Modified: trunk/debathena/config/auto-update/debian/athena-auto-update
> ===================================================================
> --- trunk/debathena/config/auto-update/debian/athena-auto-update 2013-02-22 18:13:40 UTC (rev 25826)
> +++ trunk/debathena/config/auto-update/debian/athena-auto-update 2013-02-25 16:14:13 UTC (rev 25827)
> @@ -340,6 +340,7 @@
> for k in $toremove; do
> if [ "$(uname -r)" != "$k" ]; then
> kpkgs="$kpkgs linux-image-$k"
> + khpkgs="$khpkgs linux-headers-$k"
> fi
> done
> echo "Will remove these kernels: $kpkgs"
> @@ -352,6 +353,16 @@
> else
> warn "Simulation failed!"
> fi
> + echo "Removing corresponding headers: $khpkgs"
> + echo "Simulating..."
> + if v apt-get -y -s remove $khpkgs; then
> + echo "Simulation ok, proceeding..."
> + if ! v apt-get -y remove $khpkgs; then
> + warn "Something went wrong trying to remove kernels!"
> + fi
> + else
> + warn "Simulation failed!"
> + fi
> fi
> fi
>
>
> Modified: trunk/debathena/config/auto-update/debian/changelog
> ===================================================================
> --- trunk/debathena/config/auto-update/debian/changelog 2013-02-22 18:13:40 UTC (rev 25826)
> +++ trunk/debathena/config/auto-update/debian/changelog 2013-02-25 16:14:13 UTC (rev 25827)
> @@ -1,3 +1,9 @@
> +debathena-auto-update (1.42.1) unstable; urgency=low
> +
> + * Also cleanup the headers for any kernels we remove. (Trac: #1012)
> +
> + -- Jonathan Reed <jdreed@mit.edu> Mon, 25 Feb 2013 11:14:03 -0500
> +
> debathena-auto-update (1.42) unstable; urgency=low
>
> * Cleanup old kernels, keeping the two most recent ones installed. This
>
>