summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:31:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:31:59 +0000
commit96d8ffd8c91d31088d98ec8b31467b94bd45382b (patch)
tree6a68364ebb38bff181cb85542df3040905a40b2e /debian/patches
parentAdding splash to default cmdline. (diff)
downloadgrub2-96d8ffd8c91d31088d98ec8b31467b94bd45382b.tar.xz
grub2-96d8ffd8c91d31088d98ec8b31467b94bd45382b.zip
Removing appending of GNU/Linux to distributor name in boot menu.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/progress-linux/0001-grub-distributor.patch34
-rw-r--r--debian/patches/series1
2 files changed, 35 insertions, 0 deletions
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 <daniel.baumann@progress-linux.org>
+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
+
diff --git a/debian/patches/series b/debian/patches/series
index 714292a..bb5b11f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -127,3 +127,4 @@ ntfs-cve-fixes/fs-ntfs-Fix-an-OOB-read-when-parsing-directory-entries-fr.patch
ntfs-cve-fixes/fs-ntfs-Fix-an-OOB-read-when-parsing-bitmaps-for-index-at.patch
ntfs-cve-fixes/fs-ntfs-Fix-an-OOB-read-when-parsing-a-volume-label.patch
ntfs-cve-fixes/fs-ntfs-Make-code-more-readable.patch
+progress-linux/0001-grub-distributor.patch