[multipass] add custom rpios cloud init to emulate rpios64 #6
|
|
@ -67,7 +67,7 @@ LOCAL_VARS_URL="${LOCAL_VARS_URL:-https://raw.githubusercontent.com/iiab/iiab/re
|
||||||
|
|
||||||
WAIT_TRIES="${WAIT_TRIES:-60}" # used ONLY for the first auto-resume
|
WAIT_TRIES="${WAIT_TRIES:-60}" # used ONLY for the first auto-resume
|
||||||
WAIT_SLEEP="${WAIT_SLEEP:-5}"
|
WAIT_SLEEP="${WAIT_SLEEP:-5}"
|
||||||
STAGGER="${STAGGER:-20}"
|
STAGGER="${STAGGER:-30}"
|
||||||
RESUME_TRIES="${RESUME_TRIES:-3}"
|
RESUME_TRIES="${RESUME_TRIES:-3}"
|
||||||
RESUME_RETRY_SLEEP="${RESUME_RETRY_SLEEP:-8}"
|
RESUME_RETRY_SLEEP="${RESUME_RETRY_SLEEP:-8}"
|
||||||
|
|
||||||
|
|
@ -180,8 +180,8 @@ if [[ ( "$FIRST_UBUNTU" == "1" || "$FIRST_DEBIAN" == "1" ) && "$BOTH_DISTROS" !=
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( COUNT < 1 )); then
|
if ! [[ "${COUNT}" =~ ^[0-9]+$ ]] || (( COUNT < 1 )); then
|
||||||
echo "[ERROR] COUNT must be >= 1" >&2
|
echo "[ERROR] COUNT must be an integer >= 1 (got: '${COUNT}')" >&2
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
# ---
|
# ---
|
||||||
|
|
@ -412,7 +412,10 @@ run_install_txt() {
|
||||||
|
|
||||||
echo "[INFO] Waiting for VM readiness before install: $vm"
|
echo "[INFO] Waiting for VM readiness before install: $vm"
|
||||||
if ! wait_for_vm "$vm"; then
|
if ! wait_for_vm "$vm"; then
|
||||||
|
{
|
||||||
|
echo "[INFO] Waiting for VM readiness before install: $vm"
|
||||||
echo "[ERROR] VM did not become ready in time (install phase): $vm"
|
echo "[ERROR] VM did not become ready in time (install phase): $vm"
|
||||||
|
} >"$log"
|
||||||
echo "88" >"$rc"
|
echo "88" >"$rc"
|
||||||
set_latest_links "$vm" "install" "$log" "$rc"
|
set_latest_links "$vm" "install" "$log" "$rc"
|
||||||
return 88
|
return 88
|
||||||
|
|
@ -639,7 +642,7 @@ pipeline_parallel_stagger() {
|
||||||
run_install_txt "$vm"
|
run_install_txt "$vm"
|
||||||
# Only Ubuntu tends to reboot during install; Debian often doesn't.
|
# Only Ubuntu tends to reboot during install; Debian often doesn't.
|
||||||
local waitflag=1
|
local waitflag=1
|
||||||
if [[ "$vm" == deb13-* || "$vm" == rpios-d13-* ]]; then
|
if [[ "$vm" == deb13-* ]]; then
|
||||||
waitflag=0
|
waitflag=0
|
||||||
fi
|
fi
|
||||||
resume_iiab "$vm" "$waitflag"
|
resume_iiab "$vm" "$waitflag"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue