From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Subject: [PATCH] GRUB_GFXMODE_LINUX user variable
Date: Sun, 29 Mar 2009 04:31:29 +0200 [thread overview]
Message-ID: <20090329023129.GA17926@thorin> (raw)
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]
This patch adds GRUB_GFXMODE_LINUX user variable to make it easy for
users to set graphical mode before booting Linux.
--
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."
[-- Attachment #2: gfxmode_linux.diff --]
[-- Type: text/x-diff, Size: 1447 bytes --]
2009-03-29 Robert Millan <rmh@aybabtu.com>
* util/grub-mkconfig.in (GRUB_GFXMODE_LINUX): Export variable.
* util/grub.d/10_linux.in (linux_entry): If $GRUB_GFXMODE_LINUX
was set by the user, set mode as per specified before boot.
Index: util/grub.d/10_linux.in
===================================================================
--- util/grub.d/10_linux.in (revision 2048)
+++ util/grub.d/10_linux.in (working copy)
@@ -107,6 +107,11 @@ EOF
initrd ${rel_dirname}/${initrd}
EOF
fi
+ if [ "$GRUB_GFXMODE_LINUX" ] ; then cat << EOF
+ set gfxmode=$GRUB_GFXMODE_LINUX
+ terminal_output gfxterm
+EOF
+ fi
cat << EOF
}
EOF
Index: util/grub-mkconfig.in
===================================================================
--- util/grub-mkconfig.in (revision 2047)
+++ util/grub-mkconfig.in (working copy)
@@ -173,7 +173,8 @@ esac
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_OUTPUT GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_GFXMODE
+export GRUB_DEFAULT GRUB_TIMEOUT GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_TERMINAL_OUTPUT \
+ GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_GFXMODE GRUB_GFXMODE_LINUX
if test "x${grub_cfg}" != "x"; then
rm -f ${grub_cfg}.new
next reply other threads:[~2009-03-29 2:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-29 2:31 Robert Millan [this message]
2009-03-29 8:39 ` [PATCH] GRUB_GFXMODE_LINUX user variable Yoshinori K. Okuji
2009-04-01 13:05 ` Robert Millan
2009-04-01 14:01 ` Yoshinori K. Okuji
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090329023129.GA17926@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.