Package: rootstrap
Version: 0.3.23-1
Severity: wishlist
Tags: patch

Hi,

I wrote a new rootstrap module to configure the locales inside the uml
image. It's currently a separate module, but perhaps an integration into
the debian module might be senseful?
It's working for both sarge and etch and does the following:

  apt-get install locales
  echo ... | debconf-set-selections # set configuration values
  dpkg-reconfigure locales # generate the configured locales
  update-locale ... # etch: setup /etc/default/locale
  echo ... >> /etc/environment # sarge: there is no /etc/default/locale

The following configuration in rootstrap.conf is supported:

[locales]
# Locales to generate
# Valid values are pairs of locale and charset (separated by a space as
# in /usr/share/i18n/SUPPORTED), multiple values are separated by comma,
# e.g.: en_US.UTF-8 UTF-8, [EMAIL PROTECTED] ISO-8859-15
generate_locales=en_US.UTF-8 UTF-8

# Default locale, empty or 'none' for no default
#default_locale=none

# Arguments to update-locale(8) for configuration of /etc/default/locale
# (or /etc/environment, if update-locale is not available)
update_locale=LC_COLLATE=POSIX LC_CTYPE=en_US.UTF-8 LC_TIME=en_US.UTF-8


Andreas

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (30, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages rootstrap depends on:
ii  debootstrap                 0.3.3        Bootstrap a basic Debian system
ii  dpkg                        1.13.21      package maintenance system for Deb
ii  python                      2.4.3-11     An interactive high-level object-o
ii  user-mode-linux             2.6.17-1um-2 User-mode Linux (kernel)

Versions of packages rootstrap recommends:
ii  uml-utilities                 20060323-3 User-mode Linux (utility programs)

-- no debconf information

Attachment: locales
Description: application/shellscript

Reply via email to