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

Re: cdebconf-slang-udeb for use in cdrom 2.88 MiB floppy?



On Fri, Jan 24, 2003 at 11:20:57PM +0100, Petter Reinholdtsen wrote:
> [Matt Kraai]
> > No.  For each frontend, create a udeb that contains only its shared
> > library (e.g., /usr/lib/cdebconf/frontend/slang.so in
> > cdebconf-slang-udeb) and include the slang package on the 2.88
> > CD-ROM image (in addition to cdebconf-udeb).
> 
> How should the default frontend be changed from text to slang or
> whatever is installed?

Heh.  I was afraid you'd ask that.

It can be set via the DEBIAN_FRONTEND environment variable, or the
_cmdline::frontend or global::default::frontend configuration
variables.

I'd say /sbin/debian-installer should set DEBIAN_FRONTEND to the
fanciest available if the user hasn't already specified it:

 if [ -z "$DEBIAN_FRONTEND" ] ; then
   for frontend in slang text ; do
     if [ -e "/usr/lib/cdebconf/frontend/$frontend.so" ] ; then
       DEBIAN_FRONTEND=$frontend
       export DEBIAN_FRONTEND
       break
     fi
   done
 fi

Matt



Reply to: