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:
parent
ec32d86275
commit
8de5a99bad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user