Hide Forgot
Cloning *again* since the original bug was closed without reason one more time. Awesome! +++ This bug was initially created as a clone of Bug #1010454 +++ During the kernel install the 'LANG=<LOCALE>' directive is copied from the '/etc/locale.conf' and appended to the kernel parameters line in the bootloader configuration file. As far as I'm concerned this is redundant, cause the 'systemd-localed.service' is the one responsible for the system locale settings, already. e.g. /etc/locale.conf: LANG=en_US.utf8 /boot/extlinux/extlinux.conf … append … LANG=en_US.utf8 … --- Additional comment from poma on 2013-10-03 12:48:24 EDT --- No news here either. Good luck. --- Additional comment from Marcos Mello on 2013-11-28 06:51:33 EST --- Should not Anaconda write locale.LANG (as it already does with vconsole.font and vconsole.keymap) to the bootloader configuration and your patch be applied? Or perhaps /etc/{vconsole.conf,locale.conf} and /etc/sysconfig/{keyboard,i18n} import section be removed entirely? I configure boot options in /etc/default/grub. Get *new* ones from new-kernel-pkg is unexpected. --- Additional comment from Marcos Mello on 2014-01-23 07:44:31 EST --- /etc/sysconfig/i18n and /etc/sysconfig/keyboard are both dead now. Thus SYSFONT, SYSFONTACM, UNIMAP, KEYTABLE, are gone too. LANG by luck is still used in /etc/locale.conf, but I am not sure it serves any purpose anymore considering dracut already put /etc/{vconsole.conf,locale.conf} in the initramfs. --- Additional comment from Marcos Mello on 2014-01-23 08:24:49 EST --- BTW, since F20 Anaconda does not write vconsole.keymap anymore, see bug 1035316 . --- Additional comment from poma on 2014-02-02 08:37:50 EST --- https://bugzilla.redhat.com/show_bug.cgi?id=1001411 ;) --- Additional comment from Marcos Mello on 2014-02-02 09:17:55 EST --- --- Additional comment from Marcos Mello on 2014-02-02 14:20:56 EST --- Related: https://bugzilla.redhat.com/show_bug.cgi?id=1033250 https://bugzilla.redhat.com/show_bug.cgi?id=881624 --- Additional comment from poma on 2014-02-05 01:17:46 EST --- I see no purpose cause the maintainer doesn't respond. However, here it is. Good look. --- Additional comment from Marcos Mello on 2014-03-21 16:39:52 EDT --- --- Additional comment from Marcos Mello on 2014-03-21 16:41:14 EDT --- I have marked bug 1060332 as a duplicate. Please keep this bug open. --- Additional comment from Marcos Mello on 2014-03-21 16:49:31 EDT --- cc'ing Harald. Harald, does LANG= do anything since http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=6c8fc6e377b94e26e6d03cddbf174cb27caad0a6 ? --- Additional comment from Harald Hoyer on 2014-04-04 05:47:50 EDT --- (In reply to Marcos Mello from comment #11) > cc'ing Harald. > > Harald, does LANG= do anything since > > http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/ > ?id=6c8fc6e377b94e26e6d03cddbf174cb27caad0a6 > > ? Hmm, not really. On the kernel command line, one should use "rd.locale.LANG=" to overwrite the language in the initramfs. This might be used to use a different language, than the one which is in $initramfs/etc/locale.conf (copied from the system, the last time dracut was called to generate the initramfs) or in case of the rescue initramfs (which has no locale.conf) to set the language. If you use "locale.LANG=", you overwrite the setting of the real root /etc/locale.conf, which you probably don't want. --- Additional comment from Marcos Mello on 2014-04-04 12:51:32 EDT --- Thank you for the explanation. Just like https://bugzilla.redhat.com/show_bug.cgi?id=1033250 https://bugzilla.redhat.com/show_bug.cgi?id=1074113 Therefore all /etc/sysconfig/{i18n,keyboard} and /etc/{locale.conf,vconsole.conf} import stuff may be dropped from new-kernel-pkg because default initramfs is HostOnly. There is an usecase that I think deserves be documented: when you need a generic initramfs (i.e. install dracut-config-generic) and want to keep console/locale settings in it. As you told me on IRC, a simple Dracut snippet config file does the job /etc/dracut.conf.d/console.conf install_items+=" /etc/vconsole.conf /etc/locale.conf " Besides that, should we have any rd.locale.XXX in the bootloader options? I never used the rescue initramfs. For it maybe? (it would be Anaconda business anyway) --- Additional comment from Marcos Mello on 2014-04-25 17:41:50 EDT --- It affects RHEL 7.0 RC too. --- Additional comment from Marcos Mello on 2014-05-17 12:12:08 EDT --- Why can not you keep this bug open? I agree that nobody appears to care, but closing it will just make it harder to someone take a look into this someday.
It is still present in F21.
Created attachment 971971 [details] Proposed fix
Reference used: http://git.kernel.org/cgit/boot/dracut/dracut.git/tree/modules.d/10i18n/parse-i18n.sh
Created attachment 981510 [details] Proposed fix (V2) Replaced eval with Bash's built-in variable indirection.
Created attachment 981776 [details] Proposed fix (V3) Drop $val. It is not needed anymore.
Ping? This is a long-standing problem created by bitroted code. I do not see a way to configure kernel-install to invoke new-kernel-pkg with --add-dracut-args, but anyway at least let's unbreak it. If one needs the dracut kernel args, teach kernel-install some config option for that.
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
It would indeed be nice to have this fixed in F22, especially now that a patch proposal already exists. Thanks.
F22 is already gone at this point. Let's hope for F23!
Marko, can't you take a look at this? F23 is almost beta now.
This looks like to be pending Peter Jones to review the patch attached earlier this year. Peter?
https://github.com/rhinstaller/grubby/pull/6
(In reply to Marcos Mello from comment #12) > https://github.com/rhinstaller/grubby/pull/6 Merged upstream now: https://github.com/rhinstaller/grubby/commit/a6843cb0fc122a3bd8a7e4067c3783ef4ce69f33 https://github.com/rhinstaller/grubby/commit/5f023ff0d6cb5ad46056d89d64c11da9782322cf Thanks.
This is still an issue with Fedora 24, the upstream patches have not yet landed.
This is still an issue with Fedora 25 Beta. Peter: all what should be needed is to rebuild grubby with the patch already included in upstream. Thanks.
I posted some time ago https://github.com/rhinstaller/grubby/issues/14 if RHEL 6 compatibility is still necessary.
This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Sadly, after more than three and half years since the initial report, it is no more a surprise that this straightforward case is still an issue with the latest release, this time being Fedora 26. Please assign to a more responsive maintainer if you know any. Thanks.
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle. Changing version to '27'.
This is still an issue with Fedora 27 Beta.
What's going on? Is grubby unmaintained?
This is still an issue with Fedora 28.
Adjusting title a bit to make it hopefully more clear, adding PrioritizedBug to Whiteboard as per https://fedoraproject.org/wiki/Fedora_Program_Management/Prioritized_bugs_and_issues_-_the_process to hopefully get more attention to this. The earlier BZ (pasted larger above as well) about this perhaps also provides some additional context: https://bugzilla.redhat.com/show_bug.cgi?id=1010454 @pjones: we would really appreciate your comments here. Thanks.
Is there an actual harm here, or is it entirely aesthetic? In order for Prioritized Bugs to really work, we need to keep it focused on issues with big impact. That doesn't mean thousands of little annoying problems shouldn't get fixed, but we can't solve them all with that particular hammer.
It is certainly an aesthetic and a correctness issue but whether there's an actual harm may be a matter of interpretation. Let's take a concrete example: Installing Fedora 28 using Finnish will cause LANG=fi_FI.UTF-8 to be added to kernel command line via grub.cfg. If changing system locale later with localectl(1), only /etc/locale.conf is updated, not grub.cfg. There is thus discrepancy of kernel command line arguments and locale actually being used. Since LANG is not set in /etc/default/grub using grubby(8) is also inadequate, one would need to locate grub.cfg (path differs on BIOS vs EFI systems), and change/remove all LANG entries there to avoid this discrepancy. Thanks.
Rejected as a PrioritizedBug. The upcoming grubby rework should address this issue.
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle. Changing version to '29'.
This message is a reminder that Fedora 29 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '29'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 29 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
I am happy to confirm this seems to be finally resolved with Fedora 31. After fresh Fedora 31 installation using the release ISO and all-defaults no LANG option is in /proc/cmdline. After upgrading to the latest packages (which include a kernel upgrade as well) and rebooting, still no LANG in /proc/cmdline.