SliTaz SliTaz Forum

You are not logged in.

#1 2011-09-15 04:04:31

lagagnon
Member
Registered: 2011-09-15
Posts: 3

Why asking locale each boot?

Every time I boot my new installed Slitaz system it asks for locale each time. Is there not somewhere this can be saved?

Offline

#2 2011-09-15 05:04:23

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Why asking locale each boot?

The locale is written to /etc/locale.conf

http://www.slitaz.org/en/doc/scratchbook/boot-scripts.html

i18n.sh - Internationalization

SliTaz backs up the configuration of the default locale in /etc/locale.conf which is read by /etc/profile at each login. The /etc/locale.conf is generated during boot time thanks to the /etc/init.d/i18n.sh script on stable-3.0 , /etc/init.d/system.sh on cooking. This script launches the 'tazlocale' application if /etc/locale.conf doesn't exist. We use the same process for the keyboard layout using 'tazkmap' and the /etc/kmap.conf configuration file. Both applications are installed and located in /sbin and use dialog and the ncurses library. The script also checks whether the configuration file for the time zone /etc/TZ exists, otherwise it creates one relying on the keyboard configuration.

Offline

#3 2011-09-15 08:28:38

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Why asking locale each boot?

Hi mojo, I have the same issue with the newly installed 2.6.37. I have the /etc/locale.conf correctly listed but as mentioned by lagagnon above, each time the system boots it asks to enter the locale.

Offline

#4 2011-09-15 09:02:08

arsaber
Member
Registered: 2011-04-14
Posts: 52

Re: Why asking locale each boot?

It was a bug in the cooking. Look at

http://forum.slitaz.org/topic/probleme-webcam

(in french)

Upgrade slitaz-boot-scripts (bug is fixed now) or, as root, edit /boot/grub/menu.lst and comment out the lang=...

Offline

#5 2011-09-15 09:44:06

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Why asking locale each boot?

@arsaber, editing out the lang= from grub menu.lst worked. Thanks!

Offline

#6 2011-09-15 14:46:41

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Why asking locale each boot?

#tazpkg recharge

#tazpkg get-install slitaz-boot-scripts --forced

The commit to fix this problem when adding lang= to bootcode:

http://hg.slitaz.org/slitaz-boot-scripts/rev/9c574bdd563f

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]