mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-27 09:39:58 +00:00
* Merge from Ubuntu:
- Treat Kubuntu as an alias for Ubuntu in GRUB_DISTRIBUTOR (Harald Sitter).
This commit is contained in:
parent
75c93276dd
commit
4c8b510c70
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -5,6 +5,9 @@ grub2 (2.00-16) UNRELEASED; urgency=low
|
|||||||
* Backport from upstream:
|
* Backport from upstream:
|
||||||
- Move @itemize after @subsection to satisfy texinfo-5.1.
|
- Move @itemize after @subsection to satisfy texinfo-5.1.
|
||||||
- grub-mkconfig: Fix detection of Emacs autosave files.
|
- grub-mkconfig: Fix detection of Emacs autosave files.
|
||||||
|
* Merge from Ubuntu:
|
||||||
|
- Treat Kubuntu as an alias for Ubuntu in GRUB_DISTRIBUTOR (Harald
|
||||||
|
Sitter).
|
||||||
|
|
||||||
-- Colin Watson <cjwatson@debian.org> Sun, 11 Aug 2013 12:12:54 +0100
|
-- Colin Watson <cjwatson@debian.org> Sun, 11 Aug 2013 12:12:54 +0100
|
||||||
|
|
||||||
|
40
debian/grub.d/05_debian_theme
vendored
40
debian/grub.d/05_debian_theme
vendored
@ -28,19 +28,22 @@ test -d /boot/grub; cd /boot/grub
|
|||||||
BACKGROUND_CACHE=".background_cache"
|
BACKGROUND_CACHE=".background_cache"
|
||||||
|
|
||||||
set_default_theme(){
|
set_default_theme(){
|
||||||
if [ "$GRUB_DISTRIBUTOR" = Ubuntu ]; then
|
case $GRUB_DISTRIBUTOR in
|
||||||
# Set a monochromatic theme for Ubuntu.
|
Ubuntu|Kubuntu)
|
||||||
echo "${1}set menu_color_normal=white/black"
|
# Set a monochromatic theme for Ubuntu.
|
||||||
echo "${1}set menu_color_highlight=black/light-gray"
|
echo "${1}set menu_color_normal=white/black"
|
||||||
|
echo "${1}set menu_color_highlight=black/light-gray"
|
||||||
|
|
||||||
if [ -e /lib/plymouth/themes/default.grub ]; then
|
if [ -e /lib/plymouth/themes/default.grub ]; then
|
||||||
sed "s/^/${1}/" /lib/plymouth/themes/default.grub
|
sed "s/^/${1}/" /lib/plymouth/themes/default.grub
|
||||||
fi
|
fi
|
||||||
else
|
;;
|
||||||
# Set the traditional Debian blue theme.
|
*)
|
||||||
echo "${1}set menu_color_normal=cyan/blue"
|
# Set the traditional Debian blue theme.
|
||||||
echo "${1}set menu_color_highlight=white/blue"
|
echo "${1}set menu_color_normal=cyan/blue"
|
||||||
fi
|
echo "${1}set menu_color_highlight=white/blue"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
module_available(){
|
module_available(){
|
||||||
@ -170,10 +173,15 @@ if set_background_image "${WALLPAPER}" "${COLOR_NORMAL}" "${COLOR_HIGHLIGHT}"; t
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If we haven't found a background image yet, use the default from desktop-base.
|
# If we haven't found a background image yet, use the default from desktop-base.
|
||||||
if [ "$GRUB_DISTRIBUTOR" != Ubuntu ] && \
|
case $GRUB_DISTRIBUTOR in
|
||||||
set_background_image "/usr/share/images/desktop-base/desktop-grub.png"; then
|
Ubuntu|Kubuntu)
|
||||||
exit 0
|
;;
|
||||||
fi
|
*)
|
||||||
|
if set_background_image "/usr/share/images/desktop-base/desktop-grub.png"; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Finally, if all of the above fails, use the default theme.
|
# Finally, if all of the above fails, use the default theme.
|
||||||
set_default_theme
|
set_default_theme
|
||||||
|
4
debian/patches/mkconfig_signed_kernel.patch
vendored
4
debian/patches/mkconfig_signed_kernel.patch
vendored
@ -7,7 +7,7 @@ Index: b/util/grub.d/10_linux.in
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- a/util/grub.d/10_linux.in
|
--- a/util/grub.d/10_linux.in
|
||||||
+++ b/util/grub.d/10_linux.in
|
+++ b/util/grub.d/10_linux.in
|
||||||
@@ -140,8 +140,16 @@
|
@@ -143,8 +143,16 @@
|
||||||
message="$(gettext_printf "Loading Linux %s ..." ${version})"
|
message="$(gettext_printf "Loading Linux %s ..." ${version})"
|
||||||
sed "s/^/$submenu_indentation/" << EOF
|
sed "s/^/$submenu_indentation/" << EOF
|
||||||
echo '$(echo "$message" | grub_quote)'
|
echo '$(echo "$message" | grub_quote)'
|
||||||
@ -24,7 +24,7 @@ Index: b/util/grub.d/10_linux.in
|
|||||||
if test -n "${initrd}" ; then
|
if test -n "${initrd}" ; then
|
||||||
# TRANSLATORS: ramdisk isn't identifier. Should be translated.
|
# TRANSLATORS: ramdisk isn't identifier. Should be translated.
|
||||||
message="$(gettext_printf "Loading initial ramdisk ...")"
|
message="$(gettext_printf "Loading initial ramdisk ...")"
|
||||||
@@ -187,6 +195,13 @@
|
@@ -190,6 +198,13 @@
|
||||||
is_first_entry=true
|
is_first_entry=true
|
||||||
while [ "x$list" != "x" ] ; do
|
while [ "x$list" != "x" ] ; do
|
||||||
linux=`version_find_latest $list`
|
linux=`version_find_latest $list`
|
||||||
|
18
debian/patches/mkconfig_ubuntu_distributor.patch
vendored
18
debian/patches/mkconfig_ubuntu_distributor.patch
vendored
@ -2,23 +2,27 @@ Description: Remove GNU/Linux from default distributor string for Ubuntu
|
|||||||
Ubuntu is called "Ubuntu", not "Ubuntu GNU/Linux".
|
Ubuntu is called "Ubuntu", not "Ubuntu GNU/Linux".
|
||||||
Author: Mario Limonciello <Mario_Limonciello@dell.com>
|
Author: Mario Limonciello <Mario_Limonciello@dell.com>
|
||||||
Author: Colin Watson <cjwatson@debian.org>
|
Author: Colin Watson <cjwatson@debian.org>
|
||||||
|
Author: Harald Sitter <apachelogger@kubuntu.org>
|
||||||
Forwarded: not-needed
|
Forwarded: not-needed
|
||||||
Last-Update: 2013-01-29
|
Last-Update: 2013-08-12
|
||||||
|
|
||||||
Index: b/util/grub.d/10_linux.in
|
Index: b/util/grub.d/10_linux.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/util/grub.d/10_linux.in
|
--- a/util/grub.d/10_linux.in
|
||||||
+++ b/util/grub.d/10_linux.in
|
+++ b/util/grub.d/10_linux.in
|
||||||
@@ -31,7 +31,11 @@
|
@@ -31,7 +31,14 @@
|
||||||
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
||||||
OS=GNU/Linux
|
OS=GNU/Linux
|
||||||
else
|
else
|
||||||
- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
||||||
+ if [ "${GRUB_DISTRIBUTOR}" = "Ubuntu" ] ; then
|
+ case ${GRUB_DISTRIBUTOR} in
|
||||||
+ OS="${GRUB_DISTRIBUTOR}"
|
+ Ubuntu|Kubuntu)
|
||||||
+ else
|
+ OS="${GRUB_DISTRIBUTOR}"
|
||||||
+ OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
+ ;;
|
||||||
+ fi
|
+ *)
|
||||||
|
+ OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
||||||
|
+ ;;
|
||||||
|
+ esac
|
||||||
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
|
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -31,11 +31,14 @@ CLASS="--class gnu-linux --class gnu --class os"
|
|||||||
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
||||||
OS=GNU/Linux
|
OS=GNU/Linux
|
||||||
else
|
else
|
||||||
if [ "${GRUB_DISTRIBUTOR}" = "Ubuntu" ] ; then
|
case ${GRUB_DISTRIBUTOR} in
|
||||||
OS="${GRUB_DISTRIBUTOR}"
|
Ubuntu|Kubuntu)
|
||||||
else
|
OS="${GRUB_DISTRIBUTOR}"
|
||||||
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
;;
|
||||||
fi
|
*)
|
||||||
|
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
|
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user