Skip to contentSkip to conversation

add support for GRUB_GFXMODE variable

PATCH In review Felix Zielcke 3 participants 6 messages Jul 31, 2008 – Aug 22, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add support for GRUB_GFXMODE variable

Here's a patch to add a GRUB_GFXMODE variable for update-grub to set the gfxmode.

2008-07-31 Felix Zielcke <[email protected]>

* util/update-grub.in (GRUB_GFXMODE): Export variable.
* util/grub.d/00_header.in: Allow the administrator to change default gfxmode via ${GRUB_GFXMODE}.

grub.d/00_header.in +2 -1
Index: util/grub.d/00_header.in
===================================================================
@@ -31,6 +31,7 @@
 
 if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi
 if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi
+if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=640x480 ; fi
 
 cat << EOF
 set default=${GRUB_DEFAULT}
@@ -43,7 +44,7 @@
     prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}`
     cat << EOF
 if font `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
-  set gfxmode=640x480
+  set gfxmode=${GRUB_GFXMODE}
   insmod gfxterm
   insmod vbe
   terminal gfxterm
update-grub.in +1 -1
Index: util/update-grub.in
===================================================================
@@ -164,7 +164,7 @@
 export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT_PATH GRUB_PRELOAD_MODULES
 
 # These are optional, user-defined variables.
-export GRUB_DEFAULT GRUB_TIMEOUT GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_TERMINAL GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID
+export GRUB_DEFAULT GRUB_TIMEOUT GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_TERMINAL GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_GFXMODE
 
 rm -f ${grub_cfg}.new
 exec > ${grub_cfg}.new
#1 lore raw

Hello,

seems like nobody responded to this one :)

Am Donnerstag, den 31.07.2008, 17:35 +0200 schrieb Felix Zielcke:

Quoted 9 lines

Here's a patch to add a GRUB_GFXMODE variable for update-grub to set the gfxmode.

2008-07-31 Felix Zielcke <[email protected]>

* util/update-grub.in (GRUB_GFXMODE): Export variable.
* util/grub.d/00_header.in: Allow the administrator to change default gfxmode via ${GRUB_GFXMODE}.

#2 lore raw

Hi,

Quoted 12 lines · Felix Zielcke

seems like nobody responded to this one :)

Am Donnerstag, den 31.07.2008, 17:35 +0200 schrieb Felix Zielcke:

Quoted 9 lines

Here's a patch to add a GRUB_GFXMODE variable for update-grub to set the gfxmode.

2008-07-31 Felix Zielcke <[email protected]>

* util/update-grub.in (GRUB_GFXMODE): Export variable.
* util/grub.d/00_header.in: Allow the administrator to change default gfxmode via ${GRUB_GFXMODE}.

This is Roberts domain ;-)

--
Marco

#3 lore raw

Am Mittwoch, den 13.08.2008, 23:26 +0200 schrieb Marco Gerards:

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

2008-07-31 Felix Zielcke <[email protected]>

* util/update-grub.in (GRUB_GFXMODE): Export variable.
* util/grub.d/00_header.in: Allow the administrator to change default gfxmode via ${GRUB_GFXMODE}.

This is Roberts domain ;-)

Hello Robert :)
*ping*
I still haven't hear anything from you,
does this look okay or not?

#4 lore raw
Quoted 7 lines · Felix Zielcke

Am Mittwoch, den 13.08.2008, 23:26 +0200 schrieb Marco Gerards:

Quoted 6 lines
Quoted 5 lines
Quoted 5 lines

2008-07-31 Felix Zielcke <[email protected]>

* util/update-grub.in (GRUB_GFXMODE): Export variable.
* util/grub.d/00_header.in: Allow the administrator to change default gfxmode via ${GRUB_GFXMODE}.

Quoted 7 lines
Quoted 2 lines

This is Roberts domain ;-)

Hello Robert :)
*ping*
I still haven't hear anything from you,
does this look okay or not?

Seems fine.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#5 lore raw

Committed.

Am Freitag, den 22.08.2008, 14:53 +0200 schrieb Robert Millan:

Quoted 18 lines · Felix Zielcke
Quoted 7 lines

Am Mittwoch, den 13.08.2008, 23:26 +0200 schrieb Marco Gerards:

Quoted 6 lines
Quoted 5 lines
Quoted 5 lines

2008-07-31 Felix Zielcke <[email protected]>

* util/update-grub.in (GRUB_GFXMODE): Export variable.
* util/grub.d/00_header.in: Allow the administrator to change default gfxmode via ${GRUB_GFXMODE}.

Quoted 7 lines
Quoted 2 lines

This is Roberts domain ;-)

Hello Robert :)
*ping*
I still haven't hear anything from you,
does this look okay or not?

Seems fine.