From 4aaf71ea8834710a8af8234677ea813bb8d05b9a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 19:30:34 +0200 Subject: Removing appending of GNU/Linux to distributor name in boot menu. Signed-off-by: Daniel Baumann --- .../progress-linux/0001-grub-distributor.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 debian/patches/progress-linux/0001-grub-distributor.patch (limited to 'debian/patches/progress-linux/0001-grub-distributor.patch') diff --git a/debian/patches/progress-linux/0001-grub-distributor.patch b/debian/patches/progress-linux/0001-grub-distributor.patch new file mode 100644 index 0000000..21c809f --- /dev/null +++ b/debian/patches/progress-linux/0001-grub-distributor.patch @@ -0,0 +1,34 @@ +Author: Daniel Baumann +Description: Removing appending of 'GNU/Linux' to distributor name in boot menu. + +diff -Naurp grub2.orig/util/grub.d/10_linux.in grub2/util/grub.d/10_linux.in +--- grub2.orig/util/grub.d/10_linux.in ++++ grub2/util/grub.d/10_linux.in +@@ -36,14 +36,7 @@ CLASS="--class gnu-linux --class gnu --c + if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then + OS=GNU/Linux + else +- case ${GRUB_DISTRIBUTOR} in +- Ubuntu|Kubuntu) +- OS="${GRUB_DISTRIBUTOR}" +- ;; +- *) +- OS="${GRUB_DISTRIBUTOR} GNU/Linux" +- ;; +- esac ++ OS="${GRUB_DISTRIBUTOR}" + CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}" + fi + +diff -Naurp grub2.orig/util/grub.d/20_linux_xen.in grub2/util/grub.d/20_linux_xen.in +--- grub2.orig/util/grub.d/20_linux_xen.in ++++ grub2/util/grub.d/20_linux_xen.in +@@ -31,7 +31,7 @@ CLASS="--class gnu-linux --class gnu --c + if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then + OS=GNU/Linux + else +- OS="${GRUB_DISTRIBUTOR} GNU/Linux" ++ OS="${GRUB_DISTRIBUTOR}" + CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}" + fi + -- cgit v1.2.3