dracut/wait_for_network_race_condition_fix.patch

15 lines
820 B
Diff
Raw Normal View History

Index: dracut-036/modules.d/40network/net-genrules.sh
===================================================================
--- dracut-036.orig/modules.d/40network/net-genrules.sh 2014-01-29 08:35:47.000000000 +0100
+++ dracut-036/modules.d/40network/net-genrules.sh 2014-03-05 16:21:32.119553089 +0100
@@ -98,6 +98,9 @@ command -v fix_bootif >/dev/null || . /l
cond='ACTION=="add", SUBSYSTEM=="net"'
# if you change the name of "91-default-net.rules", also change modules.d/80cms/cmssetup.sh
echo "$cond, $runcmd" > /etc/udev/rules.d/91-default-net.rules
+ if [ "$NEEDNET" = "1" ]; then
+ echo "[ -f /tmp/net.*.did-setup ]" >$hookdir/initqueue/finished/wait-network.sh
+ fi
fi
# if you change the name of "90-net.rules", also change modules.d/80cms/cmssetup.sh