[26934] in Source-Commits

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

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

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Wed Mar 6 13:50:05 2013

Date: Wed, 6 Mar 2013 13:49:59 -0500
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201303061849.r26InxD5032571@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2013-03-06 13:49:58 -0500 (Wed, 06 Mar 2013)
New Revision: 25839

Modified:
   trunk/debathena/scripts/installer/install-debathena.beta.sh
Log:
* Deal with HWE LTS kernels whose source is not linux-meta
* Preseed the cyrus-common question, which is meaningless for most
  people, and will go away in Dec 2013 anyway


Modified: trunk/debathena/scripts/installer/install-debathena.beta.sh
===================================================================
--- trunk/debathena/scripts/installer/install-debathena.beta.sh	2013-03-06 18:02:58 UTC (rev 25838)
+++ trunk/debathena/scripts/installer/install-debathena.beta.sh	2013-03-06 18:49:58 UTC (rev 25839)
@@ -304,6 +304,7 @@
 # Set sane defaults
 openafs-client  openafs-client/thiscell string grand.central.org
 openafs-client  openafs-client/cachesize string 150000
+cyrus-common	cyrus-common/removespools	boolean	false
 # A null value is fine as of krb5 1.6.dfsg.3-1
 krb5-config     krb5-config/default_realm string 
 # No value means use Hesiod
@@ -316,7 +317,7 @@
 # These are also questions asked by default, but 
 # the user should probably see them anyway.
 #gdm     shared/default-x-display-manager seen true
-#cyrus-common    cyrus-common/removespool seen true
+cyrus-common    cyrus-common/removespool seen true
 #hddtemp hddtemp/daemon seen true
 EOF
 
@@ -365,7 +366,9 @@
 if [ "$ubuntu" = "yes" ]; then
     # Ubuntu kernel metapackages have a source of 'linux-meta'
     # Find all of them and replace "-image-" with "-headers-".
-    kernel_hdr_meta_pkgs=$(dpkg-query -W -f '${Source}\t${Package}\n' 'linux-image-*' | awk '$1=="linux-meta" { sub(/-image-/, "-headers-", $2); print $2 }')
+    # Except the source _starts with_ linux-meta because of HWE
+    # stacks (e.g. linux-meta-lts-quantal.  I hate you all.
+    kernel_hdr_meta_pkgs=$(dpkg-query -W -f '${Source}\t${Package}\n' 'linux-image-*' | awk '$1 ~ /^linux-meta/ { sub(/-image-/, "-headers-", $2); print $2 }')
 else
     # Debian.  "Yay".  Old squeeze has linux-latest-2.6 as the
     # metapackage.  squeeze-backpors and newer have linux-latest as


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