I use custom sources.list, preferences, and apt.conf files to control which debian distribution ends up on a target. The default behavior of prepate_apt to overwrite any apt config files was causing me grief.
Here's a patch to allow one to drop in custom apt config files without worrying about fai overwriting them. -Bruce --- /usr/lib/fai/prepare_apt.orig 2003-02-21 09:07:50.000000000 -0800 +++ /usr/lib/fai/prepare_apt 2003-10-22 10:43:17.000000000 -0700 @@ -9,7 +9,7 @@ # set hostname in $FAI_ROOT echo -e "$IPADDR\t$HOSTNAME.$DOMAIN $HOSTNAME" >>$FAI_ROOT/etc/hosts echo $HOSTNAME >$FAI_ROOT/etc/hostname -cp /etc/apt/* $FAI_ROOT/etc/apt/ +cp -vi --reply=no /etc/apt/* $FAI_ROOT/etc/apt/ # some packages must access /proc even in chroot environment mount -t proc proc $FAI_ROOT/proc
