summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2013-03-27 18:42:39 +0000
committererdgeist <erdgeist@erdgeist.org>2013-03-27 18:42:39 +0000
commit0bbd3a754990df15ffa89d56fc9754d79fd5c545 (patch)
tree2617a445bc6e50cfafe3a0eb17aff48f5760fd3b
parent2d4d1c759a43a69a0e2007cfe7b5547e1b4c4cf1 (diff)
Retry freebsd-update until install fails
-rwxr-xr-xezjail-admin5
1 files changed, 4 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index cb871b9..e4646e8 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -915,7 +915,10 @@ setup|update)
915 ezjail_osversion_target="`uname -r`" 915 ezjail_osversion_target="`uname -r`"
916 916
917 # Finally run freebsd-update to upgrade our basejail 917 # Finally run freebsd-update to upgrade our basejail
918 env UNAME_r="${ezjail_osversion_source}" freebsd-update -b ${ezjail_jailbase} -r ${ezjail_osversion_target} upgrade install 918 env UNAME_r="${ezjail_osversion_source}" freebsd-update -b ${ezjail_jailbase} -r ${ezjail_osversion_target} upgrade
919 while [ $? -eq 0 ]; do
920 env UNAME_r="${ezjail_osversion_source}" freebsd-update -b ${ezjail_jailbase} -r ${ezjail_osversion_target} install
921 done
919 922
920 # Here we should write the file with the new osversion in case of success 923 # Here we should write the file with the new osversion in case of success
921 else 924 else