From f5ad77642faab52d0c976ffdbce2f32d8ec57564 Mon Sep 17 00:00:00 2001 From: inference Date: Sun, 18 Sep 2022 21:29:41 +0100 Subject: [PATCH] Add patch to replace GNU/Linux strings with Linux strings, since GNU has no relation to Linux whatsoever. --- portage/patches/sys-boot/grub/gnulinux.patch | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 portage/patches/sys-boot/grub/gnulinux.patch diff --git a/portage/patches/sys-boot/grub/gnulinux.patch b/portage/patches/sys-boot/grub/gnulinux.patch new file mode 100644 index 0000000..d8bce1e --- /dev/null +++ b/portage/patches/sys-boot/grub/gnulinux.patch @@ -0,0 +1,29 @@ +Not GNU/Linux. + +--- a/util/grub.d/10_linux.in ++++ b/util/grub.d/10_linux.in +@@ -29,9 +29,9 @@ export TEXTDOMAINDIR="@localedir@" + CLASS="--class gnu-linux --class gnu --class os" + + if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then +- OS=GNU/Linux ++ OS=Linux + else +- OS="${GRUB_DISTRIBUTOR} GNU/Linux" ++ OS="${GRUB_DISTRIBUTOR} Linux" + CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}" + fi + +--- a/util/grub.d/20_linux_xen.in ++++ b/util/grub.d/20_linux_xen.in +@@ -29,9 +29,9 @@ export TEXTDOMAINDIR="@localedir@" + CLASS="--class gnu-linux --class gnu --class os --class xen" + + if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then +- OS=GNU/Linux ++ OS=Linux + else +- OS="${GRUB_DISTRIBUTOR} GNU/Linux" ++ OS="${GRUB_DISTRIBUTOR} Linux" + CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}" + fi