summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-10-12 20:08:45 +0200
committerDaniel Baumann <daniel@debian.org>2011-10-13 09:38:32 +0200
commite9a5afc6cccb0bea5e13b302518c165bfca1c864 (patch)
treef651256d64eb581c22fc58bd0fc712dc0d578823
parentb0454ad434b9a6cc1493d8309f6ccf3999c68b1a (diff)
downloadvyos-live-build-e9a5afc6cccb0bea5e13b302518c165bfca1c864.tar.gz
vyos-live-build-e9a5afc6cccb0bea5e13b302518c165bfca1c864.zip
Deal with non-existing preseed files in config tree.
-rwxr-xr-xscripts/build/lb_chroot_preseed13
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