Bug#387679: [Pkg-uml-pkgs] Bug#387679: rootstrap: problems with
debconf preseeding
Mattia Dongili
malattia at linux.it
Sun Sep 17 19:08:11 UTC 2006
On Sat, Sep 16, 2006 at 12:07:26AM +0200, Andreas Beckmann wrote:
> 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
[...]
> -if test -n "$debconf_preseed_file" -a -f "$debconf_preseed_file"; then
> +if test -n "$debconf_preseed_file"; then
> + case "$debconf_preseed_file" in
> + /* ) preseed_prefix=$HOST ;;
> + *) preseed_prefix=$HOST_CWD ;;
> + esac
> +fi
what about a simpler
if test -n "$debconf_preseed_file"; then
for p in $WORKDIR $HOST ; do
[ -f "$p/$debconf_preseed_file" ] || cp $p/$debconf_preseed_file $TARGET/var/cache/debconf/config.dat
done
done
hmmm... should test it, anyway this bug needs to be fixed.
Thanks again
--
mattia
:wq!
More information about the Pkg-uml-pkgs
mailing list