From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZPwNM-0007t0-Bh for mharc-grub-devel@gnu.org; Thu, 13 Aug 2015 13:33:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPwNK-0007sF-2Z for grub-devel@gnu.org; Thu, 13 Aug 2015 13:33:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPwNG-0007YW-1Y for grub-devel@gnu.org; Thu, 13 Aug 2015 13:33:10 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:33954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPwNF-0007YI-Pq; Thu, 13 Aug 2015 13:33:05 -0400 Received: by lbbtg9 with SMTP id tg9so31429952lbb.1; Thu, 13 Aug 2015 10:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/PCINk7TMwkzTUb3eaUrjmgbY9mYzXTQ2aFCUbf8PFs=; b=o9WzAid4Y9Y3MKkae+OYug4imGLfOb/9sHBVzbupvO9Rib1KcM0mu0B5MXe81zzs7A VK5XIgnPiOSFS6ywm5GGXGg/+AFrBzY36oIfs5X/CHC89ztenYGJs3txmH5MKEe5TteX 0NOkI2otll7JR/kk+s01tSWf/90MVfEIL83EhNZmQEbs7pSZvPU2BamDnl6S839Kvegr tB5CujHwEIVxfcKp/83FCNE8o5Hm5uYFF2cI1L9Gh2a38nDFsdTQsE5uaPX3jM144sVw JfsUsipNW5yG9leJlrgFZgi8CANY/RHd2FlUI/E8vBiBtAG3xIvzk+LiqhrX+nkKBQKv W6Ww== X-Received: by 10.112.85.204 with SMTP id j12mr36877357lbz.47.1439487185009; Thu, 13 Aug 2015 10:33:05 -0700 (PDT) Received: from [192.168.1.43] (ppp91-76-5-127.pppoe.mtu-net.ru. [91.76.5.127]) by smtp.gmail.com with ESMTPSA id k9sm727601lbp.13.2015.08.13.10.33.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Aug 2015 10:33:03 -0700 (PDT) Message-ID: <55CCD4CE.4030708@gmail.com> Date: Thu, 13 Aug 2015 20:33:02 +0300 From: Andrei Borzenkov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: =?gbk?Q?Herv=A8=A6_Werner?= Subject: Re: Changing default keyboard layout References: , <20150809161907.62cbad27@opensuse.site> In-Reply-To: Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 Cc: "bug-grub@gnu.org" , Marco Gamberoni , "grub-devel@gnu.org" X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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: Thu, 13 Aug 2015 17:33:11 -0000 On 12.08.2015 22:17, Herv¨¦ Werner wrote: > As requested I compiled the latest development version of Grub and installed it on a test laptop. Without any further configuration, Grub works fine, it is able to boot as intended but the keyboard mapping is us. > > I then added the following snippet : > grubdir="`echo "/boot/grub" | sed 's,//*,/,g'`" > > grub-kbdcomp -o "${grubdir}"/layout.gkb fr > > cat < terminal_input at_keyboard > insmod keylayouts > keymap `make_system_path_relative_to_its_root "${grubdir}"/layout.gkb` > EOF > > and ran grub-mkconfig which produced the following output in grub.cfg : > terminal_input at_keyboard > insmod keylayouts > keymap /grub/layout.gkb > > I checked that the file /boot/grub/layout.gkb (as you have probably figured out, I have a dedicated partition for Grub's files), it is fine the file has been successfully created. At last I executed grub-install and rebooted. This time I'm no longer able to boot : the screen is freezing at Grub's main menu, the timeout counter isn't even decreasing and I'm not able to enter into Grub's rescue. Removing the insmod line doesn't change anything. > To be sure - does it hang without at_keyboard as well? keylayouts is loaded automatically as dependency of at_keyboard anyway, and it is quite unlikely anything in this module would cause observed effect. > Could you please tell me what I could do to increase debugging output ? > First try to reproduce it without GUI - it is rather hard to see anything in this case. Just boot grub without any grub.cfg - you will be left in plain CLI. Now try insmod at_keyboard terminal_input at_keyboard does it still work? If yes, try keymap /grub/layout.gkb; does it still work? and to be sure - could you send me your gkb file for test?