Fix iscsi NM use

When NM calls us there can be a delay between when it thinks we
are up and when nm-online returns success. This has nm-online
wait for up to 60 secs so we do not fail early.
This commit is contained in:
Mike Christie 2012-02-04 03:00:00 -06:00
parent ec32d86275
commit 8de5a99bad

View File

@ -34,7 +34,7 @@ start() {
# if the network isn't up yet exit cleanly, NetworkManager will call us
# again when the network is up
[ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 3
[ ! -f /var/lock/subsys/network ] && ! nm-online -t 60 >/dev/null 2>&1 && exit 3
# if no nodes are setup to startup automatically exit cleanly
grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes