Blame 0058-dhclient-initqueue-hook-fix.patch
|
Harald Hoyer |
89b080 |
From a17fc9902e3ccd154765cbc8a1b7cc285072ad75 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
89b080 |
From: Dave Young <dyoung@redhat.com>
|
|
Harald Hoyer |
89b080 |
Date: Mon, 9 Jul 2012 14:56:35 +0800
|
|
Harald Hoyer |
89b080 |
Subject: [PATCH] dhclient initqueue hook fix
|
|
Harald Hoyer |
89b080 |
|
|
Harald Hoyer |
89b080 |
dhclient initqueue hook fix
|
|
Harald Hoyer |
89b080 |
|
|
Harald Hoyer |
89b080 |
setup_net is scheduled in initqueue, sometimes it does not get chance to run
|
|
Harald Hoyer |
89b080 |
So the default route will not be set properly
|
|
Harald Hoyer |
89b080 |
|
|
Harald Hoyer |
89b080 |
Add a check in initqueue/finished to resolve this issue.
|
|
Harald Hoyer |
89b080 |
|
|
Harald Hoyer |
89b080 |
Signed-off-by: Dave Young <dyoung@redhat.com>
|
|
Harald Hoyer |
89b080 |
---
|
|
Harald Hoyer |
89b080 |
modules.d/40network/dhclient-script.sh | 2 ++
|
|
Harald Hoyer |
89b080 |
1 file changed, 2 insertions(+)
|
|
Harald Hoyer |
89b080 |
|
|
Harald Hoyer |
89b080 |
diff --git a/modules.d/40network/dhclient-script.sh b/modules.d/40network/dhclient-script.sh
|
|
Harald Hoyer |
89b080 |
index 470444e..1500fe5 100755
|
|
Harald Hoyer |
89b080 |
--- a/modules.d/40network/dhclient-script.sh
|
|
Harald Hoyer |
89b080 |
+++ b/modules.d/40network/dhclient-script.sh
|
|
Harald Hoyer |
89b080 |
@@ -88,9 +88,11 @@ case $reason in
|
|
Harald Hoyer |
89b080 |
echo "setup_net $netif"
|
|
Harald Hoyer |
89b080 |
echo "source_hook initqueue/online $netif"
|
|
Harald Hoyer |
89b080 |
[ -e /tmp/net.$netif.manualup ] || echo "/sbin/netroot $netif"
|
|
Harald Hoyer |
89b080 |
+ echo "> /tmp/setup_net_$netif.ok"
|
|
Harald Hoyer |
89b080 |
echo "rm -f $hookdir/initqueue/setup_net_$netif.sh"
|
|
Harald Hoyer |
89b080 |
} > $hookdir/initqueue/setup_net_$netif.sh
|
|
Harald Hoyer |
89b080 |
|
|
Harald Hoyer |
89b080 |
+ echo "[ -f /tmp/setup_net_$netif.ok ]" > $hookdir/initqueue/finished/dhclient-$netif.sh
|
|
Harald Hoyer |
89b080 |
>/tmp/net.$netif.up
|
|
Harald Hoyer |
89b080 |
;;
|
|
Harald Hoyer |
89b080 |
*) echo "dhcp: $reason";;
|