--- /dev/null
+=== modified file 'util/grub.d/10_hurd.in'
+--- util/grub.d/10_hurd.in 2010-02-03 00:24:07 +0000
++++ util/grub.d/10_hurd.in 2010-04-08 09:54:44 +0000
+@@ -27,7 +27,7 @@
+ OS=GNU
+ else
+ OS="${GRUB_DISTRIBUTOR} GNU/Hurd"
+- CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]') ${CLASS}"
++ CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]' | cut -d' ' -f1) ${CLASS}"
+ fi
+
+ at_least_one=false
+
+=== modified file 'util/grub.d/10_kfreebsd.in'
+--- util/grub.d/10_kfreebsd.in 2010-02-03 00:24:07 +0000
++++ util/grub.d/10_kfreebsd.in 2010-04-08 09:54:44 +0000
+@@ -30,7 +30,7 @@
+ case "${GRUB_DISTRIBUTOR}" in
+ Debian)
+ OS="${GRUB_DISTRIBUTOR} GNU/kFreeBSD"
+- CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]') --class gnu-kfreebsd --class gnu ${CLASS}"
++ CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]' | cut -d' ' -f1) --class gnu-kfreebsd --class gnu ${CLASS}"
+ ;;
+ *)
+ OS="FreeBSD"
+
+=== modified file 'util/grub.d/10_linux.in'
+--- util/grub.d/10_linux.in 2010-02-26 13:32:24 +0000
++++ util/grub.d/10_linux.in 2010-04-08 09:54:44 +0000
+@@ -31,7 +31,7 @@
+ OS=GNU/Linux
+ else
+ OS="${GRUB_DISTRIBUTOR} GNU/Linux"
+- CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]') ${CLASS}"
++ CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]' | cut -d' ' -f1) ${CLASS}"
+ fi
+
+ # loop-AES arranges things so that /dev/loop/X can be our root device, but
+