OK, locales is a bad example. Here's the rest of my script (sorry, forgot about that)
# This is needed because locales` postinst doesn't work properly. # The above followed by: # dpkg-reconfigure -fnoninteractice locale # should do this, but it doesn't echo en_US ISO-8859-1 >> /etc/locale.gen /usr/sbin/locale-gen I'm using this method with etherconf and it works fine. > -----Original Message----- > From: Marc SCHAEFER [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 20, 2002 10:34 AM > To: Bruce Edge > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: Preconfiguring packages in FAI > > > On Wed, 20 Nov 2002, Bruce Edge wrote: > > > Here's what I use for populating the debconf database: > > > > #!/bin/bash > > . /usr/share/debconf/confmodule > > # Setup default locale, en_US > > db_set locales/default_environment_locale "Leave alone" > > db_set locales/locales_to_be_generated "en_US ISO-8859-1" > > db_fset locales/locales_to_be_generated seen true > > db_go > > Will that work with `locales' ? There was a thread here > about it where it > was shown that locales doesn't use debconf at first > installation at all, > and the author said that debconf wasn't a registry. > > The logical conclusion was that feeding config.dat was wrong, but that > making so that when a program asks questions through debconf, correct > answers are fed is the way to go. > > Someone even implemented it. > >