[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem with dpkg-reconfigure and noninteractive frontend



On Mon, Apr 26, 2004 at 11:45:53PM -0700, Don Armstrong wrote:
> Just to be clear, I haven't (yet) implemented the below, but I've
> thought about it a little bit... [Manoj and others have much more
> experience with debconf and configuration files than I do, so cum
> grano solis.
> 
> On Tue, 27 Apr 2004, Denis Barbier wrote:
> > Consider for instance the locales package, can you please explain
> > how local changes in /etc/locale.gen can be preserved while
> > reconfiguring it in noninteractive mode?
> 
> Has /etc/locale.gen been modified since it was last generated (check
> md5sum within the config file)[1]?
>     Yes:
> 	Use ucf or similar for prompting from the autogenerated files
> 	If non-interactive, do nothing. (Presumably ucf knows how
> 	we're being run)
>     No:
> 	Reconfigure /etc/locale.gen using debconf settings

But if debconf database is removed for any reason and /etc/locale.gen
has not been modified, default debconf values will be used, which means
that all locales are removed.

Denis



Reply to: