[28345] in Source-Commits

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

cluster-login-config commit: Workaround GRUB's lack of LVM support

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Tue Jul 22 09:58:35 2014

Date: Tue, 22 Jul 2014 09:58:28 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201407221358.s6MDwSIl010855@drugstore.mit.edu>
To: source-commits@MIT.EDU

https://github.com/mit-athena/cluster-login-config/commit/31bd68c059a934a0191f6bdfe3762db2e9b39b86
commit 31bd68c059a934a0191f6bdfe3762db2e9b39b86
Author: Jonathan Reed <jdreed@mit.edu>
Date:   Mon Jul 21 14:58:52 2014 -0400

    Workaround GRUB's lack of LVM support
    
    GRUB displays a spurious error message when recordfail support
    is enabled and / is on an LVM partition.  (Trac: #1512)
    Workaround this by scribbling over the function definition, thus
    disabling the functionality, because we don't care.

 debian/50_debathena-cluster |    6 ++++++
 debian/changelog            |    7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/debian/50_debathena-cluster b/debian/50_debathena-cluster
index 54b30ee..1ecd5e2 100755
--- a/debian/50_debathena-cluster
+++ b/debian/50_debathena-cluster
@@ -7,4 +7,10 @@ cat <<EOF
 if [ \${timeout} = -1 ]; then
   set timeout=60
 fi
+
+# Disable recordfail with a dummy function
+# See Debian #754921 and LP #1274320
+function recordfail {
+  set recordfail=0
+}
 EOF
diff --git a/debian/changelog b/debian/changelog
index 07c942c..6da7e0f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debathena-cluster-login-config (1.44) unstable; urgency=low
+
+  * Work around upstream bugs by redefining recordfail() to do nothing in
+    the grub config (Trac: #1512)
+
+ -- Jonathan Reed <jdreed@mit.edu>  Mon, 21 Jul 2014 14:57:39 -0400
+
 debathena-cluster-login-config (1.43) unstable; urgency=low
 
   * Suppress the shutdown and restart menu items in indicator-session,

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