+ # we definitely don't want to fail running fai sofupdate just
+ # because of some well known bugs:
+ [ -d $target/etc/apt/apt.conf.d ] || mkdir $target/etc/apt/apt.conf.d
+ cat > $target/etc/apt/apt.conf.d/10apt-listbugs << EOF
+// Check all packages whether they has critical bugs before they are installed.
+// If you don't like it, comment it out.
+//DPkg::Pre-Install-Pkgs {"/usr/sbin/apt-listbugs apt || exit 10"};
+//DPkg::Tools::Options::/usr/sbin/apt-listbugs "";
+//DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2";
+EOF
+
+ # make sure we can handle kernel upgrades:
+ if [ -r $target/etc/kernel-img.conf ] ; then
+ if ! grep -q "silent_modules = Yes" $target/etc/kernel-img.conf ; then
+ echo "silent_modules = Yes" >> $target/etc/kernel-img.conf
+ fi
+ fi
+
+ # FAI softupdate executes upgrade only with the sources.list being
+ # present in the chroot :-/ - so let's do it on our own: