summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinst10
1 files changed, 8 insertions, 2 deletions
diff --git a/inst b/inst
index 36dde95..a9e0f3f 100755
--- a/inst
+++ b/inst
@@ -356,11 +356,17 @@ do_debconf_setup()
do_install_extra()
{
+ local i=
+
info 'Installing extra packages'
- in_target apt-get -q -y install ${postinst_pkgs} || return 1
+ i=0
+ while [ ${i} -lt 3 ]; do
+ in_target apt-get -q -y install ${postinst_pkgs} && return 0
+ i=$((${i} + 1))
+ done
- return 0
+ return 1
}
do_chroot_cleanup()