prepare_apt patch for working with sid/sarge/versions & pinning

Bruce Edge bedge at
Wed Oct 22 20:07:18 CEST 2003

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.


--- /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 $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

More information about the linux-fai mailing list