ClearOS Bug Tracker


View Revisions: Issue #13201 All Revisions ] Back to Issue ]
Summary 0013201: Language detection from grub
Revision 2017-02-21 13:56 by user2
Description On firstboot and subsequent boots, webconfig should preview environment variables potentially set in grub and change the language of the OS and the web interface if the environment variable is changed in any of these files:

/boot/grub2/grubenv
/boot/efi/EFI/clearos/grubenv
/boot/efi/EFI/install/grubenv

The priority is the last item.

A sample output of this text file is:

# GRUB Environment Block
saved_entry=ClearOS (3.10.0-327.36.1.v7.x86_64) 7 (Final)
lang=en
language=en_US
raid=RAID
raidmode=BTRFS
#############... snip ...

NOTE: THERE IS NO CARRIAGE RETURN ON THE LAST LINE OF THE BOOT BLOCK

Standard file which is ignored may look like this:

# GRUB Environment Block
saved_entry=ClearOS (3.10.0-514.6.1.el7.x86_64) 7 (Beta 1)
#############... snip ...
Revision 2017-02-21 13:19 by dloper
Description On firstboot and subsequent boots, webconfig should preview environment variables potentially set in grub and change the language of the OS and the web interface if the environment variable is changed in any of these files:

/boot/grub2/grubenv
/boot/efi/EFI/clearos/grubenv
/boot/efi/EFI/install/grubenv

The priority is the last item.

A sample output of this text file is:

# GRUB Environment Block
saved_entry=ClearOS (3.10.0-327.36.1.v7.x86_64) 7 (Final)
lang=en
language=en_US
raid=RAID
raidmode=BTRFS
#############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################

NOTE: THERE IS NO CARRIAGE RETURN ON THE LAST LINE OF THE BOOT BLOCK

Standard file which is ignored may look like this:

# GRUB Environment Block
saved_entry=ClearOS (3.10.0-514.6.1.el7.x86_64) 7 (Beta 1)
############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################