diff options
-rwxr-xr-x | scripts/build/lb_chroot_preseed | 13 |
1 files 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 |