summaryrefslogtreecommitdiff
path: root/user/grub/adelie-branding.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/grub/adelie-branding.patch')
-rw-r--r--user/grub/adelie-branding.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/user/grub/adelie-branding.patch b/user/grub/adelie-branding.patch
new file mode 100644
index 000000000..606c1e6e9
--- /dev/null
+++ b/user/grub/adelie-branding.patch
@@ -0,0 +1,25 @@
+--- grub-2.04/util/grub.d/10_linux.in.old 2018-11-24 17:13:02.000000000 +0000
++++ grub-2.04/util/grub.d/10_linux.in 2019-10-03 01:22:34.593401423 +0000
+@@ -28,12 +28,16 @@
+
+ CLASS="--class gnu-linux --class gnu --class os"
+
+-if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
+- OS=GNU/Linux
+-else
+- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
+- CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
+-fi
++case "x${GRUB_DISTRIBUTOR}" in
++ x)
++ OS=GNU/Linux;;
++ xAdélie|xAdelie)
++ OS="Adélie Linux";
++ CLASS="--class adelie";;
++ *)
++ OS="${GRUB_DISTRIBUTOR} GNU/Linux";
++ CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}";;
++esac
+
+ # loop-AES arranges things so that /dev/loop/X can be our root device, but
+ # the initrds that Linux uses don't like that.