[27292] in Source-Commits
scripts commit: Add the OpenAFS PPA because upstream is broken
daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Wed Sep 25 10:00:31 2013
Date: Wed, 25 Sep 2013 10:00:22 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201309251400.r8PE0M9g021102@drugstore.mit.edu>
To: source-commits@MIT.EDU
https://github.com/mit-athena/scripts/commit/694759d2b65227581c6a7fa5e7a11302dad77a79
commit 694759d2b65227581c6a7fa5e7a11302dad77a79
Author: Jonathan Reed <jdreed@mit.edu>
Date: Tue Sep 24 16:29:39 2013 -0400
Add the OpenAFS PPA because upstream is broken
Add (or offer to add, on not-cluster) the OpenAFS PPA if
the user is running an lts-raring kernel and trying to install a dkms
module for openafs. (Trac: #1377)
installer/install-debathena.beta.sh | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/installer/install-debathena.beta.sh b/installer/install-debathena.beta.sh
index 19530f5..a643d8b 100644
--- a/installer/install-debathena.beta.sh
+++ b/installer/install-debathena.beta.sh
@@ -366,6 +366,19 @@ else
openafs_component=" openafs"
fi
+if [ "$modules" = "openafs-modules-dkms" ] && \
+ dpkg-query -W -f '${Status}\n' linux-image-\*-lts-raring 2>/dev/null | grep -qx "install ok installed"; then
+ output "Ubuntu does not yet support OpenAFS on this kernel."
+ output "You will need to configure the OpenAFS PPA instead."
+ if [ cluster != "$category" ]; then
+ ask "Is that ok? [Y/n] " y
+ if [ y != "$answer" ]; then
+ exit 0
+ fi
+ fi
+ add-apt-repository -y ppa:openafs/stable
+fi
+
# Select the correct headers package
kernel_hdr_meta_pkgs=
if [ "$ubuntu" = "yes" ]; then