Magellan Linux

Contents of /trunk/grub/patches/grub-2.12-cosmetic.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3804 - (show annotations) (download)
Thu Dec 28 11:04:10 2023 UTC (4 months ago) by niro
File size: 2483 byte(s)
-rediffed against 2.12
1 diff -Naur grub-2.12/util/grub.d/10_linux.in grub-2.12-cosmetic/util/grub.d/10_linux.in
2 --- grub-2.12/util/grub.d/10_linux.in 2022-12-07 14:47:11.000000000 +0100
3 +++ grub-2.12-cosmetic/util/grub.d/10_linux.in 2023-12-28 12:01:42.543044995 +0100
4 @@ -31,7 +31,7 @@
5 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
6 OS=GNU/Linux
7 else
8 - OS="${GRUB_DISTRIBUTOR} GNU/Linux"
9 + OS="${GRUB_DISTRIBUTOR}"
10 CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
11 fi
12
13 @@ -94,9 +94,9 @@
14 if [ x$type != xsimple ] ; then
15 case $type in
16 recovery)
17 - title="$(gettext_printf "%s, with Linux %s (recovery mode)" "${os}" "${version}")" ;;
18 + title="$(gettext_printf "%s [ %s ] (recovery mode)" "${os}" "${version}")" ;;
19 *)
20 - title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;;
21 + title="$(gettext_printf "%s [ %s ]" "${os}" "${version}")" ;;
22 esac
23 if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
24 replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
25 diff -Naur grub-2.12/util/grub.d/20_linux_xen.in grub-2.12-cosmetic/util/grub.d/20_linux_xen.in
26 --- grub-2.12/util/grub.d/20_linux_xen.in 2023-10-03 14:21:48.000000000 +0200
27 +++ grub-2.12-cosmetic/util/grub.d/20_linux_xen.in 2023-12-28 12:03:13.800920241 +0100
28 @@ -31,7 +31,7 @@
29 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
30 OS=GNU/Linux
31 else
32 - OS="${GRUB_DISTRIBUTOR} GNU/Linux"
33 + OS="${GRUB_DISTRIBUTOR}"
34 CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
35 fi
36
37 @@ -120,9 +120,9 @@
38 fi
39 if [ x$type != xsimple ] ; then
40 if [ x$type = xrecovery ] ; then
41 - title="$(gettext_printf "%s, with Xen %s and Linux %s (recovery mode)" "${os}" "${entry_xen_version}" "${version}")"
42 + title="$(gettext_printf "%s Xen %s [ %s ] (recovery mode)" "${os}" "${entry_xen_version}" "${version}")"
43 else
44 - title="$(gettext_printf "%s, with Xen %s and Linux %s" "${os}" "${entry_xen_version}" "${version}")"
45 + title="$(gettext_printf "%s Xen %s [ %s ]" "${os}" "${entry_xen_version}" "${version}")"
46 fi
47 replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
48 if [ x"Xen ${entry_xen_version}>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then