Bug 41046 - grub/default and localization
grub/default and localization
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Grub
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-1-errata
Assigned To: Philipp Hahn
Janek Walkenhorst
:
Depends on:
Blocks: 41047
  Show dependency treegraph
 
Reported: 2016-04-13 12:14 CEST by Stefan Gohmann
Modified: 2016-05-04 18:19 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2016-04-13 12:14:08 CEST
It is possible to set the grub default entry, see Bug #26763. If the variable is set via LDAP policy, the update-grub is executed without a localization. On the other hand, if the UCR variable is set manually, a localization is set.

My workaround:
if ! grep -q LC_ALL /usr/sbin/update-grub; then sed -i "s|^grub-mkconfig -o|LC_ALL=C grub-mkconfig -o|" /usr/sbin/update-grub; /usr/sbin/update-grub; fi

Ticket #2015121821000574
Comment 1 Philipp Hahn univentionstaff 2016-04-15 17:04:14 CEST
# LANG=de_DE.UTF-8 update-grub & grep ^menuentry /boot/grub/grub.cfg
> menuentry 'Univention Corporate Server, mit Linux 3.16.0-ucs191-686-pae' --class univention --class gnu-linux --class gnu --class os {

# LANG=C update-grub & grep ^menuentry /boot/grub/grub.cfg
> menuentry 'Univention Corporate Server, with Linux 3.16.0-ucs191-686-pae' --class univention --class gnu-linux --class gnu --class os {


r68708 | Bug #40586,Bug #25157,Bug #40557: univention-grub

Package: univention-grub
Version: 9.0.1-5.131.201604151656
Branch: ucs_4.1-0
Scope: errata4.1-1

r68709 | Bug #40586,Bug #25157,Bug #40557: univention-grub YAML
 univention-grub.yaml
Comment 2 Janek Walkenhorst univentionstaff 2016-04-29 18:36:44 CEST
Code review: OK
Advisory: OK
Tests: OK
Comment 3 Janek Walkenhorst univentionstaff 2016-05-04 18:19:26 CEST
<http://errata.software-univention.de/ucs/4.1/171.html>