mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
grub: remove artwork, add GRUB_COLOR variables instead
This commit is contained in:
parent
9d84a4fa8b
commit
19e05d4931
3 changed files with 38 additions and 2 deletions
|
@ -11,7 +11,11 @@ GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 slub_debug=P page_poison=1"
|
||||||
#GRUB_TERMINAL_INPUT="console"
|
#GRUB_TERMINAL_INPUT="console"
|
||||||
# Uncomment to disable graphical terminal
|
# Uncomment to disable graphical terminal
|
||||||
#GRUB_TERMINAL_OUTPUT=console
|
#GRUB_TERMINAL_OUTPUT=console
|
||||||
GRUB_BACKGROUND=/usr/share/void-artwork/splash.png
|
#GRUB_BACKGROUND=/usr/share/void-artwork/splash.png
|
||||||
#GRUB_GFXMODE=1920x1080x32
|
#GRUB_GFXMODE=1920x1080x32
|
||||||
#GRUB_DISABLE_LINUX_UUID=true
|
#GRUB_DISABLE_LINUX_UUID=true
|
||||||
#GRUB_DISABLE_RECOVERY=true
|
#GRUB_DISABLE_RECOVERY=true
|
||||||
|
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
|
||||||
|
# modes only. Entries specified as foreground/background.
|
||||||
|
#GRUB_COLOR_NORMAL="light-blue/black"
|
||||||
|
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
|
||||||
|
|
32
srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
Normal file
32
srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
|
||||||
|
index 3390ba9..c416489 100644
|
||||||
|
--- util/grub-mkconfig.in
|
||||||
|
+++ util/grub-mkconfig.in
|
||||||
|
@@ -218,6 +218,8 @@ export GRUB_DEFAULT \
|
||||||
|
GRUB_THEME \
|
||||||
|
GRUB_GFXPAYLOAD_LINUX \
|
||||||
|
GRUB_DISABLE_OS_PROBER \
|
||||||
|
+ GRUB_COLOR_NORMAL \
|
||||||
|
+ GRUB_COLOR_HIGHLIGHT \
|
||||||
|
GRUB_INIT_TUNE \
|
||||||
|
GRUB_SAVEDEFAULT \
|
||||||
|
GRUB_ENABLE_CRYPTODISK \
|
||||||
|
diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
|
||||||
|
index d2e7252..8259f45 100644
|
||||||
|
--- util/grub.d/00_header.in
|
||||||
|
+++ util/grub.d/00_header.in
|
||||||
|
@@ -125,6 +125,14 @@ cat <<EOF
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
+if [ x$GRUB_COLOR_NORMAL != x ] && [ x$GRUB_COLOR_HIGHLIGHT != x ] ; then
|
||||||
|
+ cat << EOF
|
||||||
|
+set menu_color_normal=$GRUB_COLOR_NORMAL
|
||||||
|
+set menu_color_highlight=$GRUB_COLOR_HIGHLIGHT
|
||||||
|
+
|
||||||
|
+EOF
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
serial=0;
|
||||||
|
gfxterm=0;
|
||||||
|
for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'grub'
|
# Template file for 'grub'
|
||||||
pkgname=grub
|
pkgname=grub
|
||||||
version=2.02
|
version=2.02
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="flex"
|
hostmakedepends="flex"
|
||||||
makedepends="libusb-compat-devel ncurses-devel freetype-devel
|
makedepends="libusb-compat-devel ncurses-devel freetype-devel
|
||||||
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
|
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
|
||||||
|
|
Loading…
Add table
Reference in a new issue