#!/bin/sh

msg='Waiting root file system...'
run() {
	# Default delay is 180s
	local sec=$((${ROOTDELAY:-180}*10))
	while [ "$sec" -gt 0 ] && [ ! -e "$rootmnt/$INIT" ]; do
		del_lock tty
		sleep 0.1
		sec=$(($sec-1))
		set_lock tty 600
	done
	[ -e "$rootmnt/$INIT" ] || return 1
}
