From e9a5afc6cccb0bea5e13b302518c165bfca1c864 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Oct 2011 20:08:45 +0200 Subject: Deal with non-existing preseed files in config tree. --- scripts/build/lb_chroot_preseed | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/build/lb_chroot_preseed b/scripts/build/lb_chroot_preseed index 2323438f5..42059be94 100755 --- a/scripts/build/lb_chroot_preseed +++ b/scripts/build/lb_chroot_preseed @@ -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 -- cgit v1.2.3