0e50f1f
We're not GNU/Linux. Tell them.
0e50f1f
0e50f1f
Lubomir Rintel <lkundrak@v3.sk>
0e50f1f
0e50f1f
diff -urp grub2.orig/util/grub.d/10_linux.in grub2/util/grub.d/10_linux.in
0e50f1f
--- grub2.orig/util/grub.d/10_linux.in	2008-08-08 07:12:30.000000000 +0200
0e50f1f
+++ grub2/util/grub.d/10_linux.in	2008-08-08 07:12:53.000000000 +0200
0e50f1f
@@ -23,11 +23,9 @@ exec_prefix=@exec_prefix@
0e50f1f
 libdir=@libdir@
0e50f1f
 . ${libdir}/`echo grub | sed ${transform}`/update-grub_lib
0e50f1f
 
0e50f1f
-if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
0e50f1f
-  OS=GNU/Linux
0e50f1f
-else
0e50f1f
-  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
0e50f1f
-fi
0e50f1f
+OS=$(sed 's/ release.*//' /etc/redhat-release)
0e50f1f
+[ -z "$OS" ] && OS=$(uname -o)
0e50f1f
+[ -z "$OS" ] && OS=Linux
0e50f1f
 
0e50f1f
 # loop-AES arranges things so that /dev/loop/X can be our root device, but
0e50f1f
 # the initrds that Linux uses don't like that.