Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NWs37-0006Id-Iz for mharc-grub-devel@gnu.org; Mon, 18 Jan 2010 08:53:45 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWs35-0006IU-Tn for grub-devel@gnu.org; Mon, 18 Jan 2010 08:53:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWs31-0006IF-4n for grub-devel@gnu.org; Mon, 18 Jan 2010 08:53:43 -0500 Received: from [199.232.76.173] (port=52102 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWs31-0006I7-1C for grub-devel@gnu.org; Mon, 18 Jan 2010 08:53:39 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:45427 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWs30-0002Uk-EY for grub-devel@gnu.org; Mon, 18 Jan 2010 08:53:38 -0500 Received: by mail.pina.cat (Postfix, from userid 1000) id 0D54F2894B248; Mon, 18 Jan 2010 14:53:36 +0100 (CET) Date: Mon, 18 Jan 2010 14:53:36 +0100 From: Carles Pina i Estany To: The development of GNU GRUB Message-ID: <20100118135335.GA28365@pinux.info> References: <20100118001016.GA12122@pina.cat> <4B54600A.4050904@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B54600A.4050904@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: keyboard layout patches X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2010 13:53:44 -0000 Hi, I answer in fast way... more at evening. Items that I don't comment I understand and agree. On Jan/18/2010, Vladimir '??-coder/phcoder' Serbinenko wrote: > > How could grub-mkinstall (00_header.in) know the current keyboard in the > > system? > setxkbmap -print will give you the x layout but it won't work outside of X. > > I wold tweak 00_header.in to generate the keymap file and setup > > it. > > > It may be executed by a daemon with no X available. I'll use Felix suggestion: do whatever is in /etc/grub/default > + filename = > + grub_malloc (grub_strlen (prefix) + grub_strlen ("/") + > + grub_strlen (args[0]) + 1); > Can you add support for complete filenames? do you mean that, for example, if args[0] starts by "/" then filename = args[0]? Actually if prefix (that it's a variable) is "/" then args[0] acts as a filename. Would be like "///test/filename" and it's a valid directory. > Can you think of a way to restoring keyboard map to English? unloading the module restores the original keyboard (so, English one). I save the original one when the module is loaded. Thanks for the other comments, -- Carles Pina i Estany http://pinux.info