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! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]