commit 28670b6edf31ca50b657cbce47577dbc67ddc5de Author: Evgeny Sinelnikov Date: Thu Nov 16 19:49:39 2023 +0400 Set hardwait for scan devices to 60 seconds and cdrom timeout to 180 diff --git a/bootchain-localdev/data/lib/bootchain/localdev b/bootchain-localdev/data/lib/bootchain/localdev index 59dc6b9..fe8d157 100755 --- a/bootchain-localdev/data/lib/bootchain/localdev +++ b/bootchain-localdev/data/lib/bootchain/localdev @@ -8,7 +8,7 @@ check_parameter ALTBOOT_LOCALDEV target= devspec= devices= -hardwait=7 +hardwait=60 b_a() { @@ -257,12 +257,12 @@ main_loop() { enter "main_loop" - local iter=0 nsec=0 + local iter=0 nsec=0 scan_started= start_scan + debug "Idle before scan devices" while :; do - debug "Idle before scan devices" sleep 1 scan_devices iter=$((1 + $iter)) @@ -293,10 +293,16 @@ main_loop() fi iter=0 + debug "device not ready, go to the next ring" + fi + + if [ -z "$scan_started" ]; then + scan_started=1 [ -n "$NOASKUSER" ] || start_scan - debug "device not ready, go to the next ring" fi + + debug "device not found yet at $(( $iter + $nsec )) second..." done leave "main_loop" @@ -323,7 +329,7 @@ if [ -z "$devspec" ] && [ -n "$prevdir" ] && [ ! -f "$altboot_auto" ]; then fi fi -timeout="${timeout:-20}" +timeout="${timeout:-180}" label="${label//\\040/ }" IM_start_output choice form errmsg ponder