[26909] in Source-Commits

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

/svn/athena r25827 - trunk/debathena/config/auto-update/debian

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Mon Feb 25 11:14:20 2013

Date: Mon, 25 Feb 2013 11:14:13 -0500
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201302251614.r1PGED6N003748@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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


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