Bug 547915

Summary: kiwi: grub keyboard settings ignored in running system
Product: [openSUSE] openSUSE 11.2 Reporter: Bernhard Wiedemann <novellbmw>
Component: BootloaderAssignee: Marcus Schaefer <ms>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P3 - Medium CC: snwint
Version: RC 1   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bernhard Wiedemann 2009-10-17 14:21:45 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090410 SUSE/1.1.16-1.1 SeaMonkey/1.1.16

I installed 11.2-RC1 openSUSE-KDE4-LiveCD-Build0336-i686.iso on my Asus laptop.
This issue might not to occur on all systems.

Reproducible: Always

Steps to Reproduce:
1. have fresh install
2. press F4 in grub to choose a different keyboard layout (e.g. German instead of US)

Actual Results:  
keyboard layout stays the same as defined in /etc/sysconfig/keyboard

Expected Results:  
keyboard layout from grub should be used or if not possible, the setting should be hidden from users.
Comment 1 Bernhard Wiedemann 2009-10-19 04:11:42 UTC
I noticed that the F2 and F4 keys in grub did change the bootloader's language and keyboard settings. 
If that is the only intended effect per specification, the above should be seen as invalid or "feature request" with the aim to avoid confusion with isolinux/syslinux on installation media both influencing the system language additionally to the bootloader language.
Comment 3 Steffen Winterfeldt 2009-10-19 13:09:24 UTC
Hm, good point. For a normal installed system the idea is to change only
the setting for the bootloader.

But I don't know what exactly happens with the keyboard setting on a Live CD.

Anyway, since openSUSE 11.2 it is possible to get the settings
passed via kernel command line (set addopt.keytable & addopt.lang
in gfxboot.cfg [see also bug 539398]).

Assigning to Live CD expert.
Comment 4 Marcus Schaefer 2009-10-20 08:38:57 UTC
* gfxboot.cfg has sections, in which section do I have to set

  addopt.keytable=1
  addopt.lang=1

  can I simply do an echo "..." >> cfgfile ?

* How do I adapt the configuration when using the branding packages

  gfxboot --config-file ... --change-config addopt.keytable=1

  ?

* and last question the branding packages provides a gfxboot.cfg for
  the isolinux case only what about the grub bootloader configuration 
  can that be changed too ?

Thanks
Comment 5 Steffen Winterfeldt 2009-10-20 09:32:39 UTC
> * gfxboot.cfg has sections, in which section do I have to set
> 
>   addopt.keytable=1
>   addopt.lang=1
> 

Depends. There are three relevant sections in 11.2: install, boot, live
which are used for normal install, installed system and live-cd.

>   can I simply do an echo "..." >> cfgfile ?

No, that won't work.

> * and last question the branding packages provides a gfxboot.cfg for
>   the isolinux case only what about the grub bootloader configuration 
>   can that be changed too ?

There is also a gfxboot.cfg for grub; it is packed into the 'message' file.

> * How do I adapt the configuration when using the branding packages
> 
>   gfxboot --config-file ... --change-config addopt.keytable=1

For an unpacked config file e.g.:

gfxboot --config-file foobar --change-config live::addopt.keytable=1

if it's in an archive like /boot/message:

gfxboot --archive /boot/message --change-config boot::addopt.keytable=1
Comment 6 Marcus Schaefer 2009-10-20 10:37:40 UTC
thanks
Comment 7 Marcus Schaefer 2009-10-20 13:23:33 UTC
fixed this in kiwi but needs testing with 11.2 RC1, M8 has still a
gfxboot bug which prevents me currently from testing. Therefore leaving
the bug open to check in my next cycle
Comment 8 Marcus Schaefer 2009-10-26 09:35:53 UTC
works with >= RC1