Deal with non-existing preseed files in config tree.
This commit is contained in:
parent
b0454ad434
commit
e9a5afc6cc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue