grub_mkconfig.patch 852 B

123456789101112131415161718192021222324252627282930313233
  1. diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
  2. index 3390ba9..c416489 100644
  3. --- a/util/grub-mkconfig.in
  4. +++ b/util/grub-mkconfig.in
  5. @@ -218,6 +218,8 @@ export GRUB_DEFAULT \
  6. GRUB_THEME \
  7. GRUB_GFXPAYLOAD_LINUX \
  8. GRUB_DISABLE_OS_PROBER \
  9. + GRUB_COLOR_NORMAL \
  10. + GRUB_COLOR_HIGHLIGHT \
  11. GRUB_INIT_TUNE \
  12. GRUB_SAVEDEFAULT \
  13. GRUB_ENABLE_CRYPTODISK \
  14. diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
  15. index d2e7252..8259f45 100644
  16. --- a/util/grub.d/00_header.in
  17. +++ b/util/grub.d/00_header.in
  18. @@ -125,6 +125,14 @@ cat <<EOF
  19. EOF
  20. +if [ x$GRUB_COLOR_NORMAL != x ] && [ x$GRUB_COLOR_HIGHLIGHT != x ] ; then
  21. + cat << EOF
  22. +set menu_color_normal=$GRUB_COLOR_NORMAL
  23. +set menu_color_highlight=$GRUB_COLOR_HIGHLIGHT
  24. +
  25. +EOF
  26. +fi
  27. +
  28. serial=0;
  29. gfxterm=0;
  30. for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do