mirror of
https://git.proxmox.com/git/grub2
synced 2025-11-03 07:36:35 +00:00
Remove GNU/Linux from default distributor string for Ubuntu
Ubuntu is called "Ubuntu", not "Ubuntu GNU/Linux". Author: Colin Watson <cjwatson@debian.org> Author: Harald Sitter <apachelogger@kubuntu.org> Forwarded: not-needed Last-Update: 2013-12-25 Patch-Name: mkconfig_ubuntu_distributor.patch
This commit is contained in:
parent
bbed543990
commit
0bfb305e24
@ -32,7 +32,14 @@ CLASS="--class gnu-linux --class gnu --class os"
|
||||
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
||||
OS=GNU/Linux
|
||||
else
|
||||
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
||||
case ${GRUB_DISTRIBUTOR} in
|
||||
Ubuntu|Kubuntu)
|
||||
OS="${GRUB_DISTRIBUTOR}"
|
||||
;;
|
||||
*)
|
||||
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
||||
;;
|
||||
esac
|
||||
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user