preseeding should override the default locales

Bug #27415 reported by Timo Aaltonen
6
Affects Status Importance Assigned to Milestone
localechooser (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

If I preseed the locales on dapper, I get all the default en_* locales instead.
Only if I run manually locale-gen after the installation do I have the locales
that was intended, but with all the unnecessary ones. /etc/locale.gen looks
fine, but is not used anymore, instead they are defined in
/var/lib/locales/supported.d/*. So, preseeding should override the default and
generate them.

this is what I preseed:

base-config localechooser/supported-locales string en_US, en_US.UTF-8, fi_FI,
fi_FI.UTF-8, fi_FI@euro

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

will not be supported, debconf-code has been removed

Changed in localechooser:
status: Unconfirmed → Rejected
Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 27415] preseeding should override the default locales

 status confirmed

On Wed, Mar 29, 2006 at 11:03:39PM -0000, Timo Aaltonen wrote:
> will not be supported, debconf-code has been removed

No, as far as I'm concerned this should be supported. It might not be
possible to suppress the additional locales, but everything you put in
localechooser/supported-locales should end up generated.

(If it does work this way now - I haven't checked - then the bug should
become fix-released.)

Changed in localechooser:
status: Rejected → Confirmed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Ok, I'll test if it works. I was confused by another bug (#19569) which was rejected, because 'locales' was restructured and thought that it affected this too. I'm with you, that additional locales should be preseedable ;)

if it _doesn't_ work, I'll take a look at localechooser and see if it is trivial to fix.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

/var/log/installer/syslog doesn't have anything that would suggest this works. It's 'post-base-installer' -phase of localechooser that should generate them if localechooser/supported-locales is set.

Does it even reach 'post-base-installer'?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

I've now tested this again and it seems to work. Maybe it was 0.27ubuntu14 that fixed it.

May 2 11:54:37 base-installer: info: Running /usr/lib/post-base-installer.d/05localechooser
May 2 11:54:37 apt-install: Reading package lists...
May 2 11:54:37 apt-install: Building dependency tree...
May 2 11:54:37 apt-install:
May 2 11:54:37 apt-install: locales is already the newest version.
May 2 11:54:37 apt-install: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
May 2 11:54:37 localechooser: Generating locales...
May 2 11:54:37 localechooser: en_US.ISO-8859-1...
May 2 11:54:39 localechooser: done
May 2 11:54:39 localechooser: fi_FI.ISO-8859-1...
May 2 11:54:40 localechooser: done
May 2 11:54:40 localechooser: fi_FI.ISO-8859-15@euro...
May 2 11:54:41 localechooser: done
May 2 11:54:41 localechooser: Generation complete.

Changed in localechooser:
status: Confirmed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

OK; if I fixed it it was unknowingly, but I'll not complain :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.