Deal with non-existing preseed files in config tree.

This commit is contained in:
Daniel Baumann 2011-10-12 20:08:45 +02:00
parent b0454ad434
commit e9a5afc6cc
1 changed files with 8 additions and 5 deletions

View File

@ -49,13 +49,16 @@ then
for PRESEED in config/preseed/*.preseed config/preseed/*.preseed.chroot
do
# Copying local preseed
cp "${PRESEED}" chroot/root/preseed
if [ -e "${PRESEED}" ]
then
# Copying local preseed
cp "${PRESEED}" chroot/root/preseed
Chroot chroot "debconf-set-selections /root/preseed"
Chroot chroot "debconf-set-selections /root/preseed"
# Removing local preseed file
rm -f chroot/root/preseed
# Removing local preseed file
rm -f chroot/root/preseed
fi
done
# Remove dependency