summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/build/chroot_preseed15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/build/chroot_preseed b/scripts/build/chroot_preseed
index ab04df054..028daa889 100755
--- a/scripts/build/chroot_preseed
+++ b/scripts/build/chroot_preseed
@@ -59,6 +59,21 @@ then
# Removing local preseed file
rm -f chroot/root/preseed
+
+ # After preseeding debconf, reconfigure packages that have already
+ # been installed in the debootstrap phase.
+ # Strip comments and empty lines and take first column (pkg name).
+ sed -e 's/[[:space:]]*#.*//' -e '/^[[:space:]]*$/d' \
+ -e 's/[[:space:]].*//g' "${PRESEED}" | \
+ while read PKG
+ do
+ # Don't know the filename, but we want to query only dpkg
+ Check_installed chroot "placeholder" "${PKG}"
+ if [ ${INSTALL_STATUS} -eq 0 ]
+ then
+ Chroot chroot "dpkg-reconfigure ${PKG}"
+ fi
+ done
fi
done