Package: fai-client
Version: 4.0.6
Severity: important
Dear Maintainer,
I tried to use a file debconf/DEFAULT to set the timezone for the package
tzdata. The contents of the file (extracted from the output of
debconf-get-selections on an installed computer) are appended below.
However, this causes a problem during the fai driven installation of a client
and consequently the timezone is not set correctly:
---- from fai.log ---
Calling task_debconf
Adding debconf data from /var/lib/fai/config/debconf/DEFAULT
Reconfiguring package tzdata
cp: target `/etc/localtime.dpkg-new' is not a directory
Current default time zone: ' Europe/UTC'
Local time is now: Sun Feb 3 14:39:28 UTC 2013.
Universal Time is now: Sun Feb 3 14:39:28 UTC 2013.
debconf: DbDriver "_ENV_stack": unable to save changes to: tzdata/Areas
tzdata/Zones/Etc tzdata/Areas
---------------------
The file $LOGDIR/debconf.data shows a copy of my debconf/DEFAULT file.
It seems as if the error 'debconf' message above may be related to the
following line in /usr/bin/fai-debconf's reconfigure_packages() subroutine:
DEBCONF_DB_OVERRIDE="File{$tmpdb readonly:true}"
DEBIAN_FRONTEND=noninteractive $ROOTCMD /usr/sbin/dpkg-reconfigure $p
I don't quite understand the effect of the 'readonly:true' stanca, but
read-only mode may be a reason for the 'unable to save changes to' message.
Of course, this problem only affects packages which were already installed
during the bootstrapping of the base system, not those installed later.
For now I'll resort to a custom configuration script for the timezone setting,
but the issue appears to be affecting any configuration of a package already
installed prior to the debconf task being run.
Thank you for having a look at it,
w.w.
--
debconf/DEFAULT:
----------------
tzdata tzdata/Areas select Europe
tzdata tzdata/Zones/Africa select
tzdata tzdata/Zones/America select
tzdata tzdata/Zones/Antarctica select
tzdata tzdata/Zones/Arctic select
tzdata tzdata/Zones/Asia select
tzdata tzdata/Zones/Atlantic select
tzdata tzdata/Zones/Australia select
tzdata tzdata/Zones/Canada select
tzdata tzdata/Zones/Etc select
tzdata tzdata/Zones/Europe select Berlin
tzdata tzdata/Zones/Indian select
tzdata tzdata/Zones/Pacific select
tzdata tzdata/Zones/SystemV select
tzdata tzdata/Zones/US select
----------------
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (500, 'stable'), (300,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages fai-client depends on:
ii file 5.11-2
ii iproute 20120521-3
ii libapt-pkg-perl 0.1.26+b1
ii perl 5.14.2-16
Versions of packages fai-client recommends:
ii debconf-utils 1.5.49
ii libgraph-perl 1:0.91-1
Versions of packages fai-client suggests:
pn logtail <none>
-- Configuration Files:
/etc/fai/fai.conf changed:
FAI_CONFIG_SRC=nfs://mucha/nfs4/mucha/system/fai/cfg/config-default
LOGUSER=admin
FAI_LOGPROTO=ssh
LOGSERVER=mucha
LOGREMOTEDIR=failog
MNTPOINT=/media/mirror
FAI=/var/lib/fai/config
FAI_SASETTINGSNFS=monet:/monet/system/cn/standard/root/workstation/settings
FAI_SASETTINGS=/var/lib/fai/sa/settings
FAI_SAHOSTCONFNFS=monet:/monet/system/cn/standard/etc/hostconfig
FAI_SAHOSTCONF=/var/lib/fai/sa/hostconfig
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]