diff options
Diffstat (limited to 'src/scripts/14chroot.sh')
-rw-r--r-- | src/scripts/14chroot.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/scripts/14chroot.sh b/src/scripts/14chroot.sh index 5b226e1f9..45d214d6f 100644 --- a/src/scripts/14chroot.sh +++ b/src/scripts/14chroot.sh @@ -95,10 +95,15 @@ Chroot () # Restore preseed configuration if [ -f "${LIVE_PRESEED}" ] then - Chroot_exec "apt-get install --yes debconf-utils" + Chroot_exec "apt-get install --yes --force-yes debconf-utils" cp "${LIVE_PRESEED}" "${LIVE_CHROOT}"/root/preseed Chroot_exec "debconf-set-selections /root/preseed" rm -f "${LIVE_CHROOT}"/root/preseed + else + if [ -n "${LIVE_PRESEED}" ]; then + echo "'${LIVE_PRESEED}' file doesn't exists. Exiting..." + exit 1 + fi fi # Restore cloned package selection |