[Bug 1218429] [NEW] casper-bottom/14locales should check if locale isn't already generated - generation uses a lot of memory and slowdowns startup
Mantas Kriaučiūnas
mantas at akl.lt
Thu Aug 29 14:49:44 UTC 2013
Public bug reported:
Currently en_US.UTF-8 locale is generated every time during
liveCD/liveUSB startup :( See these lines in less /var/log/casper.log :
Begin: Setting up locales... ... Generating locales...
en_US.UTF-8... done
Generation complete.
done.
Locale generation uses a lot of memory and slowdowns startup, especially on slower computers.
en_US.UTF-8 locale should be already generated in filesystem.squashfs and other locales should be generated during liveCD/liveUSB startup only if user chooses another language in syslinux.
It seems Ubuntu 12.04 and newer releases already contains en_US and other en_* locales in filesystem.squashfs (they are generated during installation of language-pack-en-base package), but script casper-bottom/14locales doesn't check if locale isn't already generated :(
I think command "localedef --list-archive" should be used for checking if needed locale isn't already generated or maybe we need to find why /usr/sbin/locale-gen command, used in 14locales script, doesn't detect that en_US .UTF-8 is already generated?
I can write a patch for checking if needed locale isn't already
generated - this is just one line if using "localedef --list-archive" ;)
** Affects: casper (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/1218429
Title:
casper-bottom/14locales should check if locale isn't already generated
- generation uses a lot of memory and slowdowns startup
Status in “casper” package in Ubuntu:
New
Bug description:
Currently en_US.UTF-8 locale is generated every time during
liveCD/liveUSB startup :( See these lines in less /var/log/casper.log
:
Begin: Setting up locales... ... Generating locales...
en_US.UTF-8... done
Generation complete.
done.
Locale generation uses a lot of memory and slowdowns startup, especially on slower computers.
en_US.UTF-8 locale should be already generated in filesystem.squashfs and other locales should be generated during liveCD/liveUSB startup only if user chooses another language in syslinux.
It seems Ubuntu 12.04 and newer releases already contains en_US and other en_* locales in filesystem.squashfs (they are generated during installation of language-pack-en-base package), but script casper-bottom/14locales doesn't check if locale isn't already generated :(
I think command "localedef --list-archive" should be used for checking if needed locale isn't already generated or maybe we need to find why /usr/sbin/locale-gen command, used in 14locales script, doesn't detect that en_US .UTF-8 is already generated?
I can write a patch for checking if needed locale isn't already
generated - this is just one line if using "localedef --list-archive"
;)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1218429/+subscriptions
More information about the foundations-bugs
mailing list