Package: grub2
Version: 1.96+20080724-14
Author: Guillem Jover <guillem@hadrons.org>
Status: applied
Debbug: 512968
Description:
 Allow installing grub-pc when gnumach is installed on a GNU/Linux system.

diff --git a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in
index d437873..902718d 100644
--- a/util/grub.d/10_hurd.in
+++ b/util/grub.d/10_hurd.in
@@ -16,6 +16,11 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+. ${libdir}/grub/update-grub_lib
+
 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
   OS=GNU
 else
@@ -60,7 +65,12 @@ fi
 
 if ${all_of_them} && test -e /lib/ld.so.1 ; then : ; else
   echo "Some Hurd stuff found, but not enough to boot." >&2
-  exit 1
+  # this is only fatal on Hurd systems
+  if dpkg --print-architecture | grep -q '^hurd-' ; then
+    exit 1
+  else
+    exit 0
+  fi
 fi
 
 prepare_grub_to_access_device ${GRUB_DEVICE}
