On Fri, 2010-08-27 at 22:37 -0600, Bdale Garbee wrote: > On Sat, 28 Aug 2010 04:27:53 +0100, Ben Hutchings <[email protected]> > wrote: > > - I filed a bug on elilo (#594650) > > I'll be traveling for the next week with limited net access and time. > If you want this attended to quickly, a suitable patch would be welcomed.
This seems to DTRT. I can either leave you to apply this or NMU, as you
prefer.
Ben.
diff -Nru elilo-3.12/debian/elilo.initramfs-post-update
elilo-3.12/debian/elilo.initramfs-post-update
--- elilo-3.12/debian/elilo.initramfs-post-update 2010-07-30
18:48:06.000000000 +0100
+++ elilo-3.12/debian/elilo.initramfs-post-update 2010-08-28
14:54:05.000000000 +0100
@@ -6,6 +6,10 @@
exit 0
;;
*)
- elilo </dev/null >&2
+ if [ -e /etc/elilo.conf ]; then
+ elilo </dev/null >&2
+ else
+ echo >&2 "elilo: Not updating; /etc/elilo.conf not found"
+ fi
;;
esac
diff -Nru elilo-3.12/debian/elilo.kernel-postinst
elilo-3.12/debian/elilo.kernel-postinst
--- elilo-3.12/debian/elilo.kernel-postinst 2010-07-30 18:42:52.000000000
+0100
+++ elilo-3.12/debian/elilo.kernel-postinst 2010-08-28 14:54:25.000000000
+0100
@@ -1,2 +1,6 @@
#!/bin/sh
-elilo </dev/null >&2
+if [ -e /etc/elilo.conf ]; then
+ elilo </dev/null >&2
+else
+ echo >&2 "elilo: Not updating; /etc/elilo.conf not found"
+fi
diff -Nru elilo-3.12/debian/elilo.kernel-postrm
elilo-3.12/debian/elilo.kernel-postrm
--- elilo-3.12/debian/elilo.kernel-postrm 2010-07-30 18:47:21.000000000
+0100
+++ elilo-3.12/debian/elilo.kernel-postrm 2010-08-28 14:54:36.000000000
+0100
@@ -1,3 +1,5 @@
#!/bin/sh
-# Do not abort kernel removal in case of error
-elilo </dev/null >&2 || true
+if [ -e /etc/elilo.conf ]; then
+ # Do not abort kernel removal in case of error
+ elilo </dev/null >&2 || true
+fi
--- END ---
--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
signature.asc
Description: This is a digitally signed message part

