From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LnkoN-0005nZ-CF for mharc-grub-devel@gnu.org; Sat, 28 Mar 2009 22:31:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnkoK-0005nU-Ul for grub-devel@gnu.org; Sat, 28 Mar 2009 22:31:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnkoG-0005nH-EN for grub-devel@gnu.org; Sat, 28 Mar 2009 22:31:44 -0400 Received: from [199.232.76.173] (port=38154 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnkoG-0005nE-92 for grub-devel@gnu.org; Sat, 28 Mar 2009 22:31:40 -0400 Received: from aybabtu.com ([69.60.117.155]:50395) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnkoF-0006lo-TV for grub-devel@gnu.org; Sat, 28 Mar 2009 22:31:40 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1LnkeI-0002kr-75 for grub-devel@gnu.org; Sun, 29 Mar 2009 04:21:24 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1Lnko5-0004fI-Hk for grub-devel@gnu.org; Sun, 29 Mar 2009 04:31:29 +0200 Date: Sun, 29 Mar 2009 04:31:29 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20090329023129.GA17926@thorin> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [PATCH] GRUB_GFXMODE_LINUX user variable X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2009 02:31:45 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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." --5mCyUwZo2JvN/JJP Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="gfxmode_linux.diff" 2009-03-29 Robert Millan * 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 --5mCyUwZo2JvN/JJP--