On 2013-09-25 08:24, Steven Shiau wrote:
>
>
> On 09/25/2013 12:35 PM, Niels Thykier wrote:
>> Ah, this should still work for preseeding localepurge.
>> However, you can only do it /before/ installing localepurge (or if you
>> remove /etc/locale.nopurge before running dpkg-reconfigure).
> Hi Niels,
> Thanks for the quick response. However, could you please tell how to
> preseed localepurge?
> Before installing localepurge, if I run:
> echo set localepurge/nopurge | debconf-communicate
> It will give me:
> 10 localepurge/nopurge doesn't exist
>
Mmm, honestly I have never done much of that so I can only be of limited
help here. By the looks of it though, it seems that you should use
debconf-set-selections. Apparently, debconf-communicate is for
"debugging"-purposes. Note that debconf-det-selections does seem to use
a slightly different format (and defaults to marking things as "seen").
>From what I can tell, the existing practice seem to be migrating values
from an already configured host like:
"""
hostA$ debconf-get-selections |\
grep "localepurge\/" > localepurge.preseed
hostB$ debconf-set-selections < localepurge.preseed
"""
Disclaimer: Haven't tried it - just saw it in [0] so I assumed it "just
works(tm)" like that.
It is possible that the people on the debian-user lists can help you
more with this[1].
> And since I can not edit a /etc/locale.nopurge before install
> localepurge, how could I preseed that?
> Thanks in advance.
>
> Steven.
>
>
Actually, you should be able to just install an /etc/locale.nopurge and
localepurge should pick it up just fine. It might not skip the
questions in this case though (because they won't be marked as seen).
~Niels
[0] http://projects.puppetlabs.com/projects/1/wiki/debian_preseed_patterns
[1] https://lists.debian.org/debian-user/
For other languages, see https://lists.debian.org/users.html
(and look/search for "debian-user-$lang")
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]