View | Details | Raw Unified | Return to bug 48448
Collapse All | Expand All

(-)a/bootchain-localdev/data/lib/bootchain/localdev (-5 / +11 lines)
Lines 8-14 check_parameter ALTBOOT_LOCALDEV Link Here
8
target=
8
target=
9
devspec=
9
devspec=
10
devices=
10
devices=
11
hardwait=7
11
hardwait=60
12
12
13
b_a()
13
b_a()
14
{
14
{
Lines 257-268 main_loop() Link Here
257
{
257
{
258
	enter "main_loop"
258
	enter "main_loop"
259
259
260
	local iter=0 nsec=0
260
	local iter=0 nsec=0 scan_started=
261
261
262
	start_scan
262
	start_scan
263
263
264
	debug "Idle before scan devices"
264
	while :; do
265
	while :; do
265
		debug "Idle before scan devices"
266
		sleep 1
266
		sleep 1
267
		scan_devices
267
		scan_devices
268
		iter=$((1 + $iter))
268
		iter=$((1 + $iter))
Lines 293-302 main_loop() Link Here
293
			fi
293
			fi
294
294
295
			iter=0
295
			iter=0
296
			debug "device not ready, go to the next ring"
297
		fi
298
299
		if [ -z "$scan_started" ]; then
300
			scan_started=1
296
			[ -n "$NOASKUSER" ] ||
301
			[ -n "$NOASKUSER" ] ||
297
				start_scan
302
				start_scan
298
			debug "device not ready, go to the next ring"
299
		fi
303
		fi
304
305
		debug "device not found yet at $(( $iter + $nsec )) second..."
300
	done
306
	done
301
307
302
	leave "main_loop"
308
	leave "main_loop"
Lines 323-329 if [ -z "$devspec" ] && [ -n "$prevdir" ] && [ ! -f "$altboot_auto" ]; then Link Here
323
	fi
329
	fi
324
fi
330
fi
325
331
326
timeout="${timeout:-20}"
332
timeout="${timeout:-180}"
327
label="${label//\\040/ }"
333
label="${label//\\040/ }"
328
IM_start_output choice form errmsg ponder
334
IM_start_output choice form errmsg ponder
329
335

Return to bug 48448