[Pkg-uml-pkgs] Bug#387679: rootstrap: problems with debconf preseeding

Andreas Beckmann debian at abeckmann.de
Fri Sep 15 22:07:26 UTC 2006


Package: rootstrap
Version: 0.3.23-1
Severity: normal

Hi Mattia,

at first many thanks for integrating all my suggestions into rootstrap.

There are two problems with preseeding:
a) can't use a local file (without an absolute path)
b) can't use a file from /etc

a) shouldn't be too hard to fix since you can have a local
rootstrap.conf and modules/ directory
b) happens because a tmpfs is mounted over /etc, but you can still
access the original /etc by prepending $HOST

I attach a small patch that should fix this behaviour by defining a
variable $preseed_prefix that gets prepended when accessing the file.
It's value is either $HOST or $HOST_CWD depending on a leading '/' in
$debconf_preseed_file. Here I assumed that the pwd on the host can be
accessed via $HOST_CWD - this probably has be be fixed :-)

Furthermore I'd suggest moving the preseeding above the initialization
of the debootstrap options in order no to interrupt the logical unit of
preparing debootstrap options and running debootstrap.


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preseed-prefix.patch
Type: text/x-c
Size: 782 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-uml-pkgs/attachments/20060916/149ed70a/preseed-prefix.bin


More information about the Pkg-uml-pkgs mailing list